On 07/06/2016 05:14 PM, Himanshu Madhani wrote: > From: Sawan Chandak <sawan.chandak@xxxxxxxxxx> > > During hot swap of PCI device, there can be PCI error on device, > during normal driver unload. The race between normal driver unload and > driver unload due to PCI error, can lead to system crash.Fix is to check > if there is unload going on and allow that function to unload the driver. > > Signed-off-by: Sawan Chandak <sawan.chandak@xxxxxxxxxx> > Signed-off-by: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx> > --- > drivers/scsi/qla2xxx/qla_dbg.c | 2 +- > drivers/scsi/qla2xxx/qla_def.h | 1 + > drivers/scsi/qla2xxx/qla_mbx.c | 41 +++++++++++++++++++++++++++++++++-------- > drivers/scsi/qla2xxx/qla_os.c | 21 +++++++++++++++++---- > 4 files changed, 52 insertions(+), 13 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html