Loading Documentation/scsi/scsi_mid_low_api.txt +1 −2 Original line number Original line Diff line number Diff line Loading @@ -973,8 +973,7 @@ Details: * * * Returns SUCCESS if command aborted else FAILED * Returns SUCCESS if command aborted else FAILED * * * Locks: struct Scsi_Host::host_lock held (with irqsave) on entry * Locks: None held * and assumed to be held on return. * * * Calling context: kernel thread * Calling context: kernel thread * * Loading drivers/ieee1394/sbp2.c +13 −1 Original line number Original line Diff line number Diff line Loading @@ -2615,7 +2615,7 @@ static int sbp2scsi_abort(struct scsi_cmnd *SCpnt) /* /* * Called by scsi stack when something has really gone wrong. * Called by scsi stack when something has really gone wrong. */ */ static int sbp2scsi_reset(struct scsi_cmnd *SCpnt) static int __sbp2scsi_reset(struct scsi_cmnd *SCpnt) { { struct scsi_id_instance_data *scsi_id = struct scsi_id_instance_data *scsi_id = (struct scsi_id_instance_data *)SCpnt->device->host->hostdata[0]; (struct scsi_id_instance_data *)SCpnt->device->host->hostdata[0]; Loading @@ -2630,6 +2630,18 @@ static int sbp2scsi_reset(struct scsi_cmnd *SCpnt) return(SUCCESS); return(SUCCESS); } } static int sbp2scsi_reset(struct scsi_cmnd *SCpnt) { unsigned long flags; int rc; spin_lock_irqsave(SCpnt->device->host->host_lock, flags); rc = __sbp2scsi_reset(SCpnt); spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); return rc; } static const char *sbp2scsi_info (struct Scsi_Host *host) static const char *sbp2scsi_info (struct Scsi_Host *host) { { return "SCSI emulation for IEEE-1394 SBP-2 Devices"; return "SCSI emulation for IEEE-1394 SBP-2 Devices"; Loading drivers/message/fusion/mptscsih.c +1 −5 Original line number Original line Diff line number Diff line Loading @@ -1801,7 +1801,6 @@ int mptscsih_dev_reset(struct scsi_cmnd * SCpnt) mptscsih_dev_reset(struct scsi_cmnd * SCpnt) { { MPT_SCSI_HOST *hd; MPT_SCSI_HOST *hd; spinlock_t *host_lock = SCpnt->device->host->host_lock; /* If we can't locate our host adapter structure, return FAILED status. /* If we can't locate our host adapter structure, return FAILED status. */ */ Loading @@ -1818,7 +1817,6 @@ mptscsih_dev_reset(struct scsi_cmnd * SCpnt) printk(KERN_WARNING MYNAM ": %s: >> Attempting target reset! (sc=%p)\n", printk(KERN_WARNING MYNAM ": %s: >> Attempting target reset! (sc=%p)\n", hd->ioc->name, SCpnt); hd->ioc->name, SCpnt); spin_unlock_irq(host_lock); if (mptscsih_TMHandler(hd, MPI_SCSITASKMGMT_TASKTYPE_TARGET_RESET, if (mptscsih_TMHandler(hd, MPI_SCSITASKMGMT_TASKTYPE_TARGET_RESET, SCpnt->device->channel, SCpnt->device->id, SCpnt->device->channel, SCpnt->device->id, 0, 0, 5 /* 5 second timeout */) 0, 0, 5 /* 5 second timeout */) Loading @@ -1830,12 +1828,10 @@ mptscsih_dev_reset(struct scsi_cmnd * SCpnt) hd->ioc->name, SCpnt); hd->ioc->name, SCpnt); hd->tmPending = 0; hd->tmPending = 0; hd->tmState = TM_STATE_NONE; hd->tmState = TM_STATE_NONE; spin_lock_irq(host_lock); return FAILED; return FAILED; } } spin_lock_irq(host_lock); return SUCCESS; return SUCCESS; } } /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ Loading drivers/s390/scsi/zfcp_scsi.c +0 −3 Original line number Original line Diff line number Diff line Loading @@ -636,8 +636,6 @@ zfcp_scsi_eh_device_reset_handler(struct scsi_cmnd *scpnt) struct zfcp_unit *unit = (struct zfcp_unit *) scpnt->device->hostdata; struct zfcp_unit *unit = (struct zfcp_unit *) scpnt->device->hostdata; struct Scsi_Host *scsi_host = scpnt->device->host; struct Scsi_Host *scsi_host = scpnt->device->host; spin_unlock_irq(scsi_host->host_lock); if (!unit) { if (!unit) { ZFCP_LOG_NORMAL("bug: Tried reset for nonexistent unit\n"); ZFCP_LOG_NORMAL("bug: Tried reset for nonexistent unit\n"); retval = SUCCESS; retval = SUCCESS; Loading Loading @@ -680,7 +678,6 @@ zfcp_scsi_eh_device_reset_handler(struct scsi_cmnd *scpnt) retval = SUCCESS; retval = SUCCESS; } } out: out: spin_lock_irq(scsi_host->host_lock); return retval; return retval; } } Loading drivers/scsi/aha152x.c +0 −2 Original line number Original line Diff line number Diff line Loading @@ -1225,8 +1225,6 @@ static int aha152x_device_reset(Scsi_Cmnd * SCpnt) } } DO_UNLOCK(flags); DO_UNLOCK(flags); spin_lock_irq(shpnt->host_lock); return ret; return ret; } } Loading Loading
Documentation/scsi/scsi_mid_low_api.txt +1 −2 Original line number Original line Diff line number Diff line Loading @@ -973,8 +973,7 @@ Details: * * * Returns SUCCESS if command aborted else FAILED * Returns SUCCESS if command aborted else FAILED * * * Locks: struct Scsi_Host::host_lock held (with irqsave) on entry * Locks: None held * and assumed to be held on return. * * * Calling context: kernel thread * Calling context: kernel thread * * Loading
drivers/ieee1394/sbp2.c +13 −1 Original line number Original line Diff line number Diff line Loading @@ -2615,7 +2615,7 @@ static int sbp2scsi_abort(struct scsi_cmnd *SCpnt) /* /* * Called by scsi stack when something has really gone wrong. * Called by scsi stack when something has really gone wrong. */ */ static int sbp2scsi_reset(struct scsi_cmnd *SCpnt) static int __sbp2scsi_reset(struct scsi_cmnd *SCpnt) { { struct scsi_id_instance_data *scsi_id = struct scsi_id_instance_data *scsi_id = (struct scsi_id_instance_data *)SCpnt->device->host->hostdata[0]; (struct scsi_id_instance_data *)SCpnt->device->host->hostdata[0]; Loading @@ -2630,6 +2630,18 @@ static int sbp2scsi_reset(struct scsi_cmnd *SCpnt) return(SUCCESS); return(SUCCESS); } } static int sbp2scsi_reset(struct scsi_cmnd *SCpnt) { unsigned long flags; int rc; spin_lock_irqsave(SCpnt->device->host->host_lock, flags); rc = __sbp2scsi_reset(SCpnt); spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); return rc; } static const char *sbp2scsi_info (struct Scsi_Host *host) static const char *sbp2scsi_info (struct Scsi_Host *host) { { return "SCSI emulation for IEEE-1394 SBP-2 Devices"; return "SCSI emulation for IEEE-1394 SBP-2 Devices"; Loading
drivers/message/fusion/mptscsih.c +1 −5 Original line number Original line Diff line number Diff line Loading @@ -1801,7 +1801,6 @@ int mptscsih_dev_reset(struct scsi_cmnd * SCpnt) mptscsih_dev_reset(struct scsi_cmnd * SCpnt) { { MPT_SCSI_HOST *hd; MPT_SCSI_HOST *hd; spinlock_t *host_lock = SCpnt->device->host->host_lock; /* If we can't locate our host adapter structure, return FAILED status. /* If we can't locate our host adapter structure, return FAILED status. */ */ Loading @@ -1818,7 +1817,6 @@ mptscsih_dev_reset(struct scsi_cmnd * SCpnt) printk(KERN_WARNING MYNAM ": %s: >> Attempting target reset! (sc=%p)\n", printk(KERN_WARNING MYNAM ": %s: >> Attempting target reset! (sc=%p)\n", hd->ioc->name, SCpnt); hd->ioc->name, SCpnt); spin_unlock_irq(host_lock); if (mptscsih_TMHandler(hd, MPI_SCSITASKMGMT_TASKTYPE_TARGET_RESET, if (mptscsih_TMHandler(hd, MPI_SCSITASKMGMT_TASKTYPE_TARGET_RESET, SCpnt->device->channel, SCpnt->device->id, SCpnt->device->channel, SCpnt->device->id, 0, 0, 5 /* 5 second timeout */) 0, 0, 5 /* 5 second timeout */) Loading @@ -1830,12 +1828,10 @@ mptscsih_dev_reset(struct scsi_cmnd * SCpnt) hd->ioc->name, SCpnt); hd->ioc->name, SCpnt); hd->tmPending = 0; hd->tmPending = 0; hd->tmState = TM_STATE_NONE; hd->tmState = TM_STATE_NONE; spin_lock_irq(host_lock); return FAILED; return FAILED; } } spin_lock_irq(host_lock); return SUCCESS; return SUCCESS; } } /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ Loading
drivers/s390/scsi/zfcp_scsi.c +0 −3 Original line number Original line Diff line number Diff line Loading @@ -636,8 +636,6 @@ zfcp_scsi_eh_device_reset_handler(struct scsi_cmnd *scpnt) struct zfcp_unit *unit = (struct zfcp_unit *) scpnt->device->hostdata; struct zfcp_unit *unit = (struct zfcp_unit *) scpnt->device->hostdata; struct Scsi_Host *scsi_host = scpnt->device->host; struct Scsi_Host *scsi_host = scpnt->device->host; spin_unlock_irq(scsi_host->host_lock); if (!unit) { if (!unit) { ZFCP_LOG_NORMAL("bug: Tried reset for nonexistent unit\n"); ZFCP_LOG_NORMAL("bug: Tried reset for nonexistent unit\n"); retval = SUCCESS; retval = SUCCESS; Loading Loading @@ -680,7 +678,6 @@ zfcp_scsi_eh_device_reset_handler(struct scsi_cmnd *scpnt) retval = SUCCESS; retval = SUCCESS; } } out: out: spin_lock_irq(scsi_host->host_lock); return retval; return retval; } } Loading
drivers/scsi/aha152x.c +0 −2 Original line number Original line Diff line number Diff line Loading @@ -1225,8 +1225,6 @@ static int aha152x_device_reset(Scsi_Cmnd * SCpnt) } } DO_UNLOCK(flags); DO_UNLOCK(flags); spin_lock_irq(shpnt->host_lock); return ret; return ret; } } Loading