OSDN Git Service

[SCSI] libiscsi: use bh locking instead of irq with session lock
authorMike Christie <michaelc@cs.wisc.edu>
Fri, 31 Dec 2010 08:22:22 +0000 (02:22 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 31 Dec 2010 15:53:09 +0000 (09:53 -0600)
commitbfcf72e4426da2fd8f8081a641385ffc3ccc2282
treeb471c73b7e31ef6a0be649ecab96ad2a8798cbe2
parentf41d472179a0d7c8e8160c85180ab1124947068e
[SCSI] libiscsi: use bh locking instead of irq with session lock

The session lock is taken in threads, timers, and bottom halves
like softirqs and tasklets. All the code but
iscsi_conn/session_failure take the session lock with the spin_lock_bh
call. This was done because I thought some offload drivers
would be calling these functions from a irq. They never did,
so this patch has iscsi_conn/session_failure use the bh
locking.

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