Commit f7c4cdc
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>1 parent 8d98416 commit f7c4cdc
1 file changed
Lines changed: 10 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4696 | 4696 | | |
4697 | 4697 | | |
4698 | 4698 | | |
| 4699 | + | |
4699 | 4700 | | |
4700 | | - | |
4701 | | - | |
4702 | | - | |
4703 | | - | |
4704 | | - | |
| 4701 | + | |
4705 | 4702 | | |
4706 | | - | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
4707 | 4706 | | |
4708 | | - | |
4709 | | - | |
4710 | | - | |
4711 | | - | |
4712 | 4707 | | |
4713 | 4708 | | |
4714 | 4709 | | |
| |||
7347 | 7342 | | |
7348 | 7343 | | |
7349 | 7344 | | |
7350 | | - | |
7351 | | - | |
7352 | | - | |
7353 | | - | |
| 7345 | + | |
7354 | 7346 | | |
7355 | 7347 | | |
7356 | 7348 | | |
| |||
7367 | 7359 | | |
7368 | 7360 | | |
7369 | 7361 | | |
7370 | | - | |
7371 | | - | |
| 7362 | + | |
7372 | 7363 | | |
7373 | | - | |
7374 | | - | |
| 7364 | + | |
| 7365 | + | |
| 7366 | + | |
7375 | 7367 | | |
7376 | 7368 | | |
7377 | 7369 | | |
| |||
0 commit comments