]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] bnx2fc: Avoid calling bnx2fc_if_destroy with unnecessary locks
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Tue, 30 Aug 2011 22:54:51 +0000 (15:54 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 17 Sep 2011 14:04:25 +0000 (18:04 +0400)
commit9b62434efa3b1689f344c7025efd7aff67f3f658
tree80c3b6cc94c1b990e4f27620e006739b21475936
parenta3c615a3ce1c745528ffc0f07964909806b5beaa
[SCSI] bnx2fc: Avoid calling bnx2fc_if_destroy with unnecessary locks

It is not required to hold rtnl_lock and bnx2fc_dev_lock when calling
bnx2fc_if_destroy, as the locking is only required to serialize creation and
deletion of fcoe instances. More importantly, this unnecessary locking causes
deadlock as bnx2fc_if_destroy calls fc_remove_host holding rtnl_lock.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c