OSDN Git Service

[SCSI] qla2xxx: Correct async-srb issues.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Fri, 28 May 2010 22:08:19 +0000 (15:08 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:01:21 +0000 (12:01 -0500)
commit6ac5260850841eb4055811a68ff47d658ebe9a59
tree00e6bc407c4732ffb709ba9de7d8c743b9520194
parent083a469db4ecf3b286a96b5b722c37fc1affe0be
[SCSI] qla2xxx: Correct async-srb issues.

* hold the hardware_lock throughout the duration of ctx-sp
  timeout handling -- could result in use-after-free oops.

* retry a timed-out login-request.

* done() routines are called with the hardware-lock held, issue
qla2x00_mark_device_lost() with proper 'defer' flag.

* FCP2 capabilities are only relevant to target devices.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_isr.c