scsi: core: Use scsi_cmd_to_rq() instead of scsi_cmnd.request
stable inclusion from stable-v5.10.206 commit df83ca8e986d0285974dfa510973191547dcd173 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I8ZD3X CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.206&id=df83ca8e986d0285974dfa510973191547dcd173 ------------------------- [ Upstream commit aa8e25e5 ] Prepare for removal of the request pointer by using scsi_cmd_to_rq() instead. Cast away constness where necessary when passing a SCSI command pointer to scsi_cmd_to_rq(). This patch does not change any functionality. Link: https://lore.kernel.org/r/20210809230355.8186-3-bvanassche@acm.org Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.de> Cc: Ming Lei <ming.lei@redhat.com> Reviewed-by:Hannes Reinecke <hare@suse.de> Signed-off-by:
Bart Van Assche <bvanassche@acm.org> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> Stable-dep-of: 066c5b46b6ea ("scsi: core: Always send batch on reset or error handling command") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Li Lingfeng <lilingfeng3@huawei.com> (cherry picked from commit a8a57828)
Loading
Please sign in to comment