diff options
author | David Disseldorp <ddiss@suse.de> | 2017-11-02 01:05:11 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-11-13 12:12:44 +0100 |
commit | 7c084289795bc0f3b9ab315ac3c8d269dd4d0215 (patch) | |
tree | df3f0656e703f068d48684725a705bba434ddae9 /net/ceph | |
parent | ec1dff25b0a012711e10290039fbc8e1c5dd69fb (diff) | |
download | linux-7c084289795bc0f3b9ab315ac3c8d269dd4d0215.tar.gz linux-7c084289795bc0f3b9ab315ac3c8d269dd4d0215.tar.bz2 linux-7c084289795bc0f3b9ab315ac3c8d269dd4d0215.zip |
rbd: set discard_alignment to zero
RBD devices are currently incorrectly initialised with the block queue
discard_alignment set to the underlying RADOS object size.
As per Documentation/ABI/testing/sysfs-block:
The discard_alignment parameter indicates how many bytes the beginning
of the device is offset from the internal allocation unit's natural
alignment.
Correcting the discard_alignment parameter from the RADOS object size to
zero (the blk_set_default_limits() default) has no effect on how discard
requests are propagated through the block layer - @alignment in
__blkdev_issue_discard() remains zero. However, it does fix the UNMAP
granularity alignment value advertised to SCSI initiators via the Block
Limits VPD.
Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net/ceph')
0 files changed, 0 insertions, 0 deletions