]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52c6c29b47e596e257caecffce5c3f531925f276
tree827c66f697bac32de0d5cafb6daf94f36456e821
parent40e935dfc196bbf00bb478606bbdf51e72689d70
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