diff options
author | James Smart <James.Smart@Emulex.Com> | 2006-03-08 14:50:12 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-06-27 10:48:11 -0500 |
commit | d7a1bb0a04ca835bffc0a91e64ab827dfba7d8f5 (patch) | |
tree | f944d6ed6ecf23c59054b7f459e88f31f8da4235 /include/scsi | |
parent | 12e9b5fb96028aab26af65bb06d2dee56c428a6e (diff) | |
download | linux-3.10-d7a1bb0a04ca835bffc0a91e64ab827dfba7d8f5.tar.gz linux-3.10-d7a1bb0a04ca835bffc0a91e64ab827dfba7d8f5.tar.bz2 linux-3.10-d7a1bb0a04ca835bffc0a91e64ab827dfba7d8f5.zip |
[SCSI] Block I/O while SG reset operation in progress - the midlayer patch
The scsi midlayer portion of the patch
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_host.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index a42efd6e4be..b3dd90f3e85 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -542,6 +542,9 @@ struct Scsi_Host { */ unsigned ordered_tag:1; + /* task mgmt function in progress */ + unsigned tmf_in_progress:1; + /* * Optional work queue to be utilized by the transport */ @@ -619,7 +622,8 @@ static inline int scsi_host_in_recovery(struct Scsi_Host *shost) { return shost->shost_state == SHOST_RECOVERY || shost->shost_state == SHOST_CANCEL_RECOVERY || - shost->shost_state == SHOST_DEL_RECOVERY; + shost->shost_state == SHOST_DEL_RECOVERY || + shost->tmf_in_progress; } extern int scsi_queue_work(struct Scsi_Host *, struct work_struct *); |