Commit 6fd5b91d authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe

skd: Let the block layer core choose .nr_requests

Since blk_mq_init_queue() initializes .nr_requests to the tag set
size and since that value is a good default for the skd driver, do
not overwrite the value set by blk_mq_init_queue(). This change
doubles the default value of .nr_requests.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent bf231981
...@@ -2845,7 +2845,6 @@ static int skd_cons_disk(struct skd_device *skdev) ...@@ -2845,7 +2845,6 @@ static int skd_cons_disk(struct skd_device *skdev)
goto err_out; goto err_out;
} }
q->queuedata = skdev; q->queuedata = skdev;
q->nr_requests = skd_max_queue_depth / 2;
skdev->queue = q; skdev->queue = q;
disk->queue = q; disk->queue = q;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment