]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: pmcraid: Select device in pmcraid_eh_bus_reset_handler()
authorHannes Reinecke <hare@suse.de>
Mon, 2 Oct 2023 15:43:26 +0000 (17:43 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 13 Oct 2023 18:23:15 +0000 (14:23 -0400)
commit09df4697223aa167a47e3745394ab55c6ffc85d2
treedeb15e1fd3fbba47b5f50b5463339ac7d066f415
parentbffebc1993a0e82d8b6003750369f6876592de11
scsi: pmcraid: Select device in pmcraid_eh_bus_reset_handler()

The reset code requires a device to be selected, but we shouldn't rely on
the command to provide a device for us. So select the first device on the
bus when sending down a bus reset.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20231002154328.43718-17-hare@suse.de
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pmcraid.c