]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
libiscsi: fix locking in iscsi_eh_device_reset
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 24 Sep 2008 16:46:15 +0000 (11:46 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 13 Oct 2008 13:29:01 +0000 (09:29 -0400)
commita343914831a8e29d89af3b26495ab1136a9e3153
tree986eec7aa0475b32047711a3fe907db66835ce64
parent87cd9eab2dfbdf7d367d7ab30e88176d7b08b83e
libiscsi: fix locking in iscsi_eh_device_reset

We must be using the bh spin locking functions in
iscsi_eh_device_reset becuase the session lock interacts with
a thread and softirq.

This patch also fixes up a bogus comment and check in fail_command,
because no one drops the lock (bnx2i did but it is not going
upstream yet and there were other refcount changes for that).

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c