On 11/11/2010 07:13 PM, Nicholas A. Bellinger wrote:
From: Nicholas Bellinger<nab@xxxxxxxxxxxxxxx> This patch changes ata_scsi_queuecmd_lck() to a host lock less ata_scsi_queuecmd() that will disable interrupts internally using ap->lock and drops the now legacy host_lock unlock. Signed-off-by: Nicholas A. Bellinger<nab@xxxxxxxxxxxxxxx> --- drivers/ata/libata-scsi.c | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index a007c36..9614758 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -3173,25 +3173,22 @@ static inline int __ata_scsi_queuecmd(struct scsi_cmnd *scmd, * SCSI commands. This creates the overall effect of * ATA and ATAPI devices appearing as SCSI devices. * - * LOCKING: - * Releases scsi-layer-held lock, and obtains host lock. - *
The code appears correct but the comment removal is not. Locking has not disappeared, and the ATA host lock continues to be obtained. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html