qla2xxx: Look up LUN for abort requests
authorSteve Hodgson <steve@purestorage.com>
Fri, 16 Nov 2012 16:06:17 +0000 (08:06 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 28 Nov 2012 06:49:17 +0000 (22:49 -0800)
commit06e97b489006f28e23bb028febfa1c01c266d676
tree3ada5b691da89f035d637e83f75f42710bd01449
parentfd9a11d7076e1d534a760032d2b8f3b59e10f9b5
qla2xxx: Look up LUN for abort requests

Search through the list of pending commands on the session list to find
the command the initiator is actually aborting, so that we can pass the
correct LUN to the core TMR handling code.

(nab: Allow abort requests to work to LUN=0 with mainline target code)

Signed-off-by: Steve Hodgson <steve@purestorage.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
drivers/scsi/qla2xxx/qla_target.c