]> Pileus Git - ~andy/linux/commit
[SCSI] libfc: Move host_lock usage into ramp_up/down routines
authorRobert Love <robert.w.love@intel.com>
Fri, 1 Apr 2011 23:06:14 +0000 (16:06 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 1 May 2011 15:20:33 +0000 (10:20 -0500)
commit9c8cce8e416b3286720379b5efa1c7fa81b2ec36
tree3ce14481f433d990ba27bcdeaab9a1bbe9c84be0
parent63ce2499947683dcc026373e24a4cb5a9d086e7d
[SCSI] libfc: Move host_lock usage into ramp_up/down routines

The host_lock is still used to protect the can_queue
value in the Scsi_Host, but it doesn't need to be held
and released by each caller. This patch moves the lock
usage into the fc_fcp_can_queue_ramp_up and
fc_fcp_can_queue_ramp_down routines.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_fcp.c