]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: megaraid: Pass in NULL scb for host reset
authorHannes Reinecke <hare@suse.de>
Mon, 2 Oct 2023 15:43:21 +0000 (17:43 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 13 Oct 2023 18:23:15 +0000 (14:23 -0400)
commit5bcd3bfbda0240c136ed68da78a042172ed0ed7f
tree15f105032093b2e164f48bd6ff3e2ce70bb7e346
parent397ff21a962d8a5ac607abe21533e89a2387a713
scsi: megaraid: Pass in NULL scb for host reset

When calling a host reset we shouldn't rely on the command triggering the
reset, so allow megaraid_abort_and_reset() to be called with a NULL scb.
And drop the pointless 'bus_reset' and 'target_reset' handlers, which just
call the same function as host_reset.

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