[SCSI] libfc: convert rport lookup to be RCU safe
authorJoe Eykholt <jeykholt@cisco.com>
Tue, 20 Jul 2010 22:19:37 +0000 (15:19 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:05:48 +0000 (09:05 -0500)
commit42e9041467cf5fd33501b91b27e26807c259c896
tree41a335a931e151f3fa00f384b5d1fb024421b7d2
parent519e5135e2537c9dbc1cbcc0891b0a936ff5dcd2
[SCSI] libfc: convert rport lookup to be RCU safe

To allow LLD to do lookups on rports without grabbing a mutex,
make them RCU-safe.  The caller of lport->tt.rport_lookup will
have the choice of holding disc_mutex or the rcu_read_lock().

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_disc.c
drivers/scsi/libfc/fc_rport.c
include/scsi/libfc.h