Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bart Van Assche and committed by
Martin K. Petersen
696fec18 caffd3ad

+4 -4
+4 -4
drivers/scsi/arm/fas216.c
··· 2015 2015 * correctly by fas216_std_done. 2016 2016 */ 2017 2017 scsi_eh_restore_cmnd(SCpnt, &info->ses); 2018 - SCpnt->scsi_done(SCpnt); 2018 + fas216_cmd_priv(SCpnt)->scsi_done(SCpnt); 2019 2019 } 2020 2020 2021 2021 /** ··· 2086 2086 } 2087 2087 2088 2088 done: 2089 - if (SCpnt->scsi_done) { 2090 - SCpnt->scsi_done(SCpnt); 2089 + if (fas216_cmd_priv(SCpnt)->scsi_done) { 2090 + fas216_cmd_priv(SCpnt)->scsi_done(SCpnt); 2091 2091 return; 2092 2092 } 2093 2093 ··· 2203 2203 fas216_log_command(info, LOG_CONNECT, SCpnt, 2204 2204 "received command (%p)", SCpnt); 2205 2205 2206 - SCpnt->scsi_done = done; 2206 + fas216_cmd_priv(SCpnt)->scsi_done = done; 2207 2207 SCpnt->host_scribble = (void *)fas216_std_done; 2208 2208 SCpnt->result = 0; 2209 2209