scsi: core: Remove the 'done' argument from SCSI queuecommand_lck functions
The DEF_SCSI_QCMD() macro passes the addresses of the SCSI host lock and also that of the scsi_done function to the queuecommand_lck() function implementations. Remove the 'scsi_done' argument since its address is now a constant and instead call 'scsi_done' directly from inside the queuecommand_lck() functions. Link: https://lore.kernel.org/r/20211007204618.2196847-14-bvanassche@acm.org Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
0feb3429d7
commit
af049dfd0b
49 changed files with 75 additions and 103 deletions
|
|
@ -516,7 +516,7 @@ struct scsi_host_template {
|
|||
unsigned long irq_flags; \
|
||||
int rc; \
|
||||
spin_lock_irqsave(shost->host_lock, irq_flags); \
|
||||
rc = func_name##_lck(cmd, scsi_done); \
|
||||
rc = func_name##_lck(cmd); \
|
||||
spin_unlock_irqrestore(shost->host_lock, irq_flags); \
|
||||
return rc; \
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue