diff options
author | Bhanu Prakash Gollapudi <bprakash@broadcom.com> | 2011-07-27 14:32:10 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-07-28 03:54:37 -0400 |
commit | bd4d5de8b9b97ff100342948c39634b44c43fe81 (patch) | |
tree | 3d4a5dd2fa80836582f6c956712651ca61026469 /drivers/scsi | |
parent | 72812ee0bd2098a7709dbcff61395fbba3f27cda (diff) |
[SCSI] bnx2fc: hold tgt lock when calling cmd_release
Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c index 797b0051b6ff..7154c44fa2c9 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_io.c +++ b/drivers/scsi/bnx2fc/bnx2fc_io.c | |||
@@ -752,7 +752,9 @@ retry_tmf: | |||
752 | rc = bnx2fc_init_mp_req(io_req); | 752 | rc = bnx2fc_init_mp_req(io_req); |
753 | if (rc == FAILED) { | 753 | if (rc == FAILED) { |
754 | printk(KERN_ERR PFX "Task mgmt MP request init failed\n"); | 754 | printk(KERN_ERR PFX "Task mgmt MP request init failed\n"); |
755 | spin_lock_bh(&tgt->tgt_lock); | ||
755 | kref_put(&io_req->refcount, bnx2fc_cmd_release); | 756 | kref_put(&io_req->refcount, bnx2fc_cmd_release); |
757 | spin_unlock_bh(&tgt->tgt_lock); | ||
756 | goto tmf_err; | 758 | goto tmf_err; |
757 | } | 759 | } |
758 | 760 | ||