[SCSI] qla2xxx: Drop srb reference before waiting for completion.
authorMike Christie <michaelc@cs.wisc.edu>
Fri, 15 Oct 2010 18:27:47 +0000 (11:27 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 25 Oct 2010 21:03:39 +0000 (16:03 -0500)
commit170babc3721997b7808193221f94926df44f3d1e
treecc7da8745df750c69047cc0529959a4d682cefb4
parente30d1756480dc5d139458b140b69873cdb10119f
[SCSI] qla2xxx: Drop srb reference before waiting for completion.

This patch fixes a regression introduced by commit
083a469db4ecf3b286a96b5b722c37fc1affe0be

qla2xxx_eh_wait_on_command() is waiting for an srb to
complete, which will never happen as the routine took
a reference to the srb previously and will only drop it
after this function. So every command abort will fail.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_os.c