mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
scsi: fas216: Stop using scsi_cmnd.scsi_done
Store the completion callback pointer in struct fas216_cmd_priv instead of in struct scsi_cmnd. This patch prepares for removal of the scsi_done member from struct scsi_cmnd. Link: https://lore.kernel.org/r/20211007202923.2174984-34-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
caffd3ad96
commit
696fec18e1
1 changed files with 4 additions and 4 deletions
|
@ -2015,7 +2015,7 @@ static void fas216_rq_sns_done(FAS216_Info *info, struct scsi_cmnd *SCpnt,
|
|||
* correctly by fas216_std_done.
|
||||
*/
|
||||
scsi_eh_restore_cmnd(SCpnt, &info->ses);
|
||||
SCpnt->scsi_done(SCpnt);
|
||||
fas216_cmd_priv(SCpnt)->scsi_done(SCpnt);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2086,8 +2086,8 @@ fas216_std_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result)
|
|||
}
|
||||
|
||||
done:
|
||||
if (SCpnt->scsi_done) {
|
||||
SCpnt->scsi_done(SCpnt);
|
||||
if (fas216_cmd_priv(SCpnt)->scsi_done) {
|
||||
fas216_cmd_priv(SCpnt)->scsi_done(SCpnt);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2203,7 +2203,7 @@ static int fas216_queue_command_lck(struct scsi_cmnd *SCpnt,
|
|||
fas216_log_command(info, LOG_CONNECT, SCpnt,
|
||||
"received command (%p)", SCpnt);
|
||||
|
||||
SCpnt->scsi_done = done;
|
||||
fas216_cmd_priv(SCpnt)->scsi_done = done;
|
||||
SCpnt->host_scribble = (void *)fas216_std_done;
|
||||
SCpnt->result = 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue