scst_local: Port to Linux kernel v5.16

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9599 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-11-22 03:48:38 +00:00
parent 0f9f9eeb3a
commit af579d68c3

View File

@@ -925,7 +925,7 @@ static int scst_local_queuecommand_lck(struct scsi_cmnd *scmd,
if (sess->unregistering) {
scmd->result = DID_BAD_TARGET << 16;
scmd->scsi_done(scmd);
scsi_done(scmd);
return 0;
}
@@ -1420,7 +1420,11 @@ static int scst_local_targ_xmit_response(struct scst_cmd *scst_cmd)
done = tgt_specific->done;
#else
scmd = scst_cmd_get_tgt_priv(scst_cmd);
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
done = scmd->scsi_done;
#else
done = scsi_done;
#endif
#endif
/*