[PATCH] SCSI: make scsi_implement_eh() generic API for SCSI transports
authorTejun Heo <htejun@gmail.com>
Fri, 19 May 2006 12:07:05 +0000 (21:07 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 20 May 2006 04:39:08 +0000 (00:39 -0400)
commitf8bbfc247efb0e5fa69094614380768ce79afe17
tree726b8eb9d41b5f7036c987b80282b90440a295ed
parenta20f33ffde8ba5fb27666aa1e228a45b7e3b8dcb
[PATCH] SCSI: make scsi_implement_eh() generic API for SCSI transports

libata implemented a feature to schedule EH without an associated EH
by manipulating shost->host_eh_scheduled in ata_scsi_schedule_eh()
directly.  Move this function to scsi_error.c and rename it to
scsi_schedule_eh().  It is now an exported API for SCSI transports and
exported via new header file drivers/scsi/scsi_transport_api.h

This patch also de-export scsi_eh_wakeup() which was exported
specifically for ata_scsi_schedule_eh().

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-eh.c
drivers/scsi/libata-scsi.c
drivers/scsi/scsi_error.c
drivers/scsi/scsi_priv.h
drivers/scsi/scsi_transport_api.h [new file with mode: 0644]
include/scsi/scsi_eh.h