diff options
author | Satish Kharat <satishkh@cisco.com> | 2016-12-14 22:20:41 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-01-06 02:41:31 +0100 |
commit | 9698b6f473555a722bf81a3371998427d5d27bde (patch) | |
tree | 6d84cbc49d767fcc058459a815fb0b0003d9aa38 /drivers/scsi/fnic/fnic.h | |
parent | scsi: qedi: fix build, depends on UIO (diff) | |
download | linux-9698b6f473555a722bf81a3371998427d5d27bde.tar.xz linux-9698b6f473555a722bf81a3371998427d5d27bde.zip |
scsi: fnic: Avoid sending reset to firmware when another reset is in progress
This fix is to avoid calling fnic_fw_reset_handler through
fnic_host_reset when a finc reset is alreay in progress.
Signed-off-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic.h')
-rw-r--r-- | drivers/scsi/fnic/fnic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/fnic/fnic.h b/drivers/scsi/fnic/fnic.h index 9ddc9200e0a4..9e4b7709043e 100644 --- a/drivers/scsi/fnic/fnic.h +++ b/drivers/scsi/fnic/fnic.h @@ -248,6 +248,7 @@ struct fnic { struct completion *remove_wait; /* device remove thread blocks */ atomic_t in_flight; /* io counter */ + bool internal_reset_inprogress; u32 _reserved; /* fill hole */ unsigned long state_flags; /* protected by host lock */ enum fnic_state state; |