buslogic: Remove host_lock unlock() + lock() from BusLogic_QueueCommand()
Subsystems (2)
RFC v3 10/15 buslogic: Remove host_lock unlock() + lock() from BusLogic_QueueCommand()
From: Nicholas Bellinger <[email protected]>
This patch removes the now legacy host_lock unlock() + lock() optimization from buslogic.c:BusLogic_QueueCommand()
Signed-off-by Nicholas A. Bellinger <[email protected]>
--- drivers/scsi/BusLogic.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/scsi/BusLogic.c +0 -4
@@ -2837,9 +2837,7 @@ static int BusLogic_QueueCommand(struct scsi_cmnd *Command, void (*CompletionRou*/ CCB =BusLogic_AllocateCCB (HostAdapter);if (CCB ==NULL ) { -spin_unlock_irq (HostAdapter->SCSI_Host->host_lock);BusLogic_Delay (1 ); -spin_lock_irq (HostAdapter->SCSI_Host->host_lock);CCB =BusLogic_AllocateCCB (HostAdapter);if (CCB ==NULL ) { Command->result =DID_ERROR <<16 ;
@@ -2965,10 +2963,8 @@ static int BusLogic_QueueCommand(struct scsi_cmnd *Command, void (*CompletionRouerror as a Host Adapter Hard Reset should be initiated soon. */ if (!BusLogic_WriteOutgoingMailbox (HostAdapter, BusLogic_MailboxStartCommand,CCB )) { -spin_unlock_irq (HostAdapter->SCSI_Host->host_lock);BusLogic_Warning ("Unable to write Outgoing Mailbox - " "Pausing for 1 second\n" , HostAdapter);BusLogic_Delay (1 ); -spin_lock_irq (HostAdapter->SCSI_Host->host_lock);if (!BusLogic_WriteOutgoingMailbox (HostAdapter, BusLogic_MailboxStartCommand,CCB )) {BusLogic_Warning ("Still unable to write Outgoing Mailbox - " "Host Adapter Dead?\n" , HostAdapter);BusLogic_DeallocateCCB (CCB );
Signature · 1 line
1.7.3