[SCSI] bnx2i: convert bnx2i_dev_lock to mutex
authorAnil Veerabhadrappa <anilgv@broadcom.com>
Tue, 23 Jun 2009 21:07:40 +0000 (14:07 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 22 Aug 2009 22:51:53 +0000 (17:51 -0500)
commit3be924fb1d7be90c3ae6aa30ca42e9aa5d75efaf
tree5b0f81e20c15a8f11c5b0aca137768d415ca91e7
parent4e85f15166a6a9da8317ddb8600b604b27e58aa3
[SCSI] bnx2i: convert bnx2i_dev_lock to mutex

convert bnx2i_dev_lock to type mutex from rwlock_t because
cnic->register_device() can sleep for various reasons including memory
allocation, waiting for ISCSI_INIT completion and while acquiring mutex lock,
cnic_lock.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Anil Veerabhadrappa <anilgv@broadcom.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bnx2i/bnx2i_init.c