Skip to content

Commit

Permalink
Return max io size for atomic volume in bytes
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
  • Loading branch information
Adam Rutkowski committed Apr 2, 2019
1 parent 64b7397 commit 21abb82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cas_cache/volume/vol_atomic_dev_bottom.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ unsigned int cas_atomic_get_max_io_size(ocf_volume_t volume)
if (!bd->bd_disk)
return 0;

return queue_max_sectors(bd->bd_disk->queue);
return queue_max_sectors(bd->bd_disk->queue) << SECTOR_SHIFT;
}

void cas_atomic_close_object(ocf_volume_t volume)
Expand Down

0 comments on commit 21abb82

Please sign in to comment.