summaryrefslogtreecommitdiff
path: root/block/blk-flush.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2018-06-05 11:41:23 -0400
committerJens Axboe <axboe@kernel.dk>2018-06-05 09:50:46 -0600
commit07ce213f63fbc389c8fcaefab6267b3bc0a12796 (patch)
treea3670201907277e6305c3a93932c5f02182ff05b /block/blk-flush.c
parentee57a05cf86f9789cbac5e9de8e720458338533b (diff)
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/blk-flush.c')
0 files changed, 0 insertions, 0 deletions