ata_scsi_queuecmd locking question
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!"
Quoted 4 lines · Jim Ramsay
I'm just looking into
libata-scsi.c, and noticed that the comments forata_scs_queuecmdnote that it is supposed to obtainhost_set->lock. It doesn't seem to do so.Should it?
The SCSI layer acquires this lock for us.
Jeff
Quoted 8 lines · Jeff Garzik
Quoted 5 lines · Jim Ramsay
I'm just looking into
libata-scsi.c, and noticed that the comments forata_scs_queuecmdnote that it is supposed to obtainhost_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!"