summaryrefslogtreecommitdiffstats
path: root/block/mq-deadline.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2018-05-23 13:35:59 -0400
committerJens Axboe <axboe@kernel.dk>2018-05-23 15:27:26 -0600
commit6df133a1495f8c497d0f53005296ef5421752620 (patch)
tree60b79b815157ca3664ecbc8f3586126da7b8dfb5 /block/mq-deadline.c
parent327ea4adcfa37194739f1ec7c70568944d292281 (diff)
downloadlinux-0-day-6df133a1495f8c497d0f53005296ef5421752620.tar.gz
linux-0-day-6df133a1495f8c497d0f53005296ef5421752620.tar.xz
nbd: set discard granularity properly
For some reason we had discard granularity set to 512 always even when discards were disabled. Fix this by having the default be 0, and then if we turn it on set the discard granularity to the blocksize. Signed-off-by: Josef Bacik <jbacik@fb.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/mq-deadline.c')
0 files changed, 0 insertions, 0 deletions