diff options
author | Josef Bacik <josef@toxicpanda.com> | 2018-06-05 11:41:23 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-05 09:50:46 -0600 |
commit | 07ce213f63fbc389c8fcaefab6267b3bc0a12796 (patch) | |
tree | a3670201907277e6305c3a93932c5f02182ff05b /block | |
parent | ee57a05cf86f9789cbac5e9de8e720458338533b (diff) | |
download | lwn-07ce213f63fbc389c8fcaefab6267b3bc0a12796.tar.gz lwn-07ce213f63fbc389c8fcaefab6267b3bc0a12796.zip |
nbd: set discard_alignment to the granularity
Technically we should be able to get away with 0 as the
discard_alignment, but there's no way currently for the protocol to
indicate different alignments, and in real life most disks have
discard_alignment == discard_granularity. Just set our alignment to our
blocksize to make sure discards will actually work properly with 4k
drives.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions