[SCSI] qla4xxx: grab hardware_lock in eh_abort before accessing srb
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 7 Oct 2010 05:51:17 +0000 (22:51 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 25 Oct 2010 19:55:57 +0000 (14:55 -0500)
commit92b3e5bbbebe86dd0071ccf23c1b21031f74bf56
tree0d093ba4395b1cff4aa6f75c6b90c295d616a06c
parentd64eab764aaf1455d4cd790e3651a2d65b69e661
[SCSI] qla4xxx: grab hardware_lock in eh_abort before accessing srb

grab hardware_lock in eh_abort before accessing srb to avoid
race between command completion and get refcount on srb.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: Ravi Anand <ravi.anand@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla4xxx/ql4_os.c