scsi: scsi_debug: Support host tagset
authorJohn Garry <john.garry@huawei.com>
Wed, 19 Aug 2020 15:20:33 +0000 (23:20 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Oct 2020 14:33:44 +0000 (08:33 -0600)
commitf7c4cdc712ab803f7cdd3d47025081831f457ecc
tree6743cc4a2cbfb080b33c2463d4c9dff7ecd1afad
parent8d98416a55ebfecbe57fd26981decf6fcdf37b11
scsi: scsi_debug: Support host tagset

When host_max_queue is set (> 0), set the Scsi_Host.host_tagset such that
blk-mq will use a hostwide tagset over all SCSI host submission queues.

This means that we may expose all submission queues and always use the hwq
chosen by blk-mq.

And since if sdebug_host_max_queue is set, sdebug_max_queue is fixed to the
same value, we can simplify how sdebug_driver_template.can_queue is set.

Signed-off-by: John Garry <john.garry@huawei.com>
Tested-by: Douglas Gilbert <dgilbert@interlog.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/scsi_debug.c