Skip to contentSkip to conversation

spin_lock in scsi_request_fn

DISCUSSION Shlomo Pongratz 1 participant 1 message Oct 28, 2012 SCSI

lore
Share & tools
lore
#0 lore raw

Hi,

I've noticed a strange usage of spin lock in scsi_request_fn located in drivers/scsi/scsi_lib.c That is in line 1565 we have spin_lock(shost->host_lock);
but in line 1595 we have spin_unlock_irq(shost->host_lock);
Is this by design or it is a typo?

Best regards,
Shlomo Pongratz.