OSDN Git Service

scsi: core: Show nr_hw_queues in sysfs
authorJohn Garry <john.garry@huawei.com>
Wed, 19 Aug 2020 15:20:31 +0000 (23:20 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Oct 2020 14:33:44 +0000 (08:33 -0600)
commit64f1501bd2a9c8ab1df548e1ed224552f9c7ac71
tree827c66f697bac32de0d5cafb6daf94f36456e821
parentbdb01301f3ea51a59eff252b06643fc1fe843e57
scsi: core: Show nr_hw_queues in sysfs

So that we don't use a value of 0 for when Scsi_Host.nr_hw_queues is unset,
use the tag_set->nr_hw_queues (which holds 1 for this case).

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_sysfs.c