diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2023-04-25 01:46:28 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-25 16:02:11 +0200 |
commit | 3f89ac587baa0c0460c977d1596e16f950815f05 (patch) | |
tree | b23e16b79885bae1959f4f4c0307303149db1904 /drivers/block/nbd.c | |
parent | block: sync part's ->bd_has_submit_bio with disk's (diff) | |
download | linux-3f89ac587baa0c0460c977d1596e16f950815f05.tar.xz linux-3f89ac587baa0c0460c977d1596e16f950815f05.zip |
block/drivers: remove dead clear of random flag
QUEUE_FLAG_ADD_RANDOM is not set before we clear it for "null_blk",
"brd", "nbd", "zram", and "bcache" since by default we don't set
"QUEUE_FLAG_ADD_RANDOM" to MQ ops.
Remove dead clear of QUEUE_FLAG_ADD_RANDOM in above listed drivers.
Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> #zram
Link: https://lore.kernel.org/r/20230424234628.45544-2-kch@nvidia.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/nbd.c')
-rw-r--r-- | drivers/block/nbd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index d445fd0934bd..7c96ec4e99df 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -1805,7 +1805,6 @@ static struct nbd_device *nbd_dev_add(int index, unsigned int refs) * Tell the block layer that we are not a rotational device */ blk_queue_flag_set(QUEUE_FLAG_NONROT, disk->queue); - blk_queue_flag_clear(QUEUE_FLAG_ADD_RANDOM, disk->queue); disk->queue->limits.discard_granularity = 0; blk_queue_max_discard_sectors(disk->queue, 0); blk_queue_max_segment_size(disk->queue, UINT_MAX); |