]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/scsi/scsi_host.h
[SCSI] scsi_error: add target reset handler
authorMike Christie <michaelc@cs.wisc.edu>
Sat, 1 Mar 2008 00:25:19 +0000 (18:25 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 7 Apr 2008 17:15:41 +0000 (12:15 -0500)
commit30bd7df8ced23eefec87a5cda96dc99b002ed9da
tree80702b8ba0454540cc7ea19cfe49871192ab860c
parentf7441a791aeaeac2e1f1f71b485d1372016f9285
[SCSI] scsi_error: add target reset handler

The problem is that serveral drivers are sending a target reset from the
device reset handler, and if we have multiple devices a target reset gets
sent for each device when only one would be sufficient. And if we do a target
reset it affects all the commands on the target so the device reset handler
code only cleaning up one devices's commands makes programming the driver a
little more difficult than it should be.

This patch adds a target reset handler, which drivers can use to send
a target reset. If successful it cleans up the commands for a devices
accessed through that starget.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_error.c
include/scsi/scsi_eh.h
include/scsi/scsi_host.h