Skip to contentSkip to conversation

ata_scsi_queuecmd locking question

DISCUSSION Jim Ramsay 2 participants 3 messages Aug 16, 2005 – Aug 17, 2005 libata

lore
Share & tools
lore

Jim Ramsay

author
#0 lore raw

I'm just looking into libata-scsi.c, and noticed that the comments for ata_scs_queuecmd note that it is supposed to obtain host_set->lock. It doesn't seem to do so.

Should it?

Signature · 2 lines
Jim Ramsay
"Me fail English?  That's unpossible!"
#1 lore raw
Quoted 4 lines · Jim Ramsay

I'm just looking into libata-scsi.c, and noticed that the comments for ata_scs_queuecmd note that it is supposed to obtain host_set->lock. It doesn't seem to do so.

Should it?

The SCSI layer acquires this lock for us.

Jeff

author
#2 lore raw
Quoted 8 lines · Jeff Garzik
Quoted 5 lines · Jim Ramsay

I'm just looking into libata-scsi.c, and noticed that the comments for ata_scs_queuecmd note that it is supposed to obtain host_set->lock. It doesn't seem to do so.

Should it?

The SCSI layer acquires this lock for us.

Ah yes, now I see - This lock is also pointed at by the host->host_lock

Signature · 2 lines
Jim Ramsay
"Me fail English?  That's unpossible!"