Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scst_lib: Fix sense data regression for pass-through commands. #123

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

bmeagherix
Copy link
Contributor

In kernel commit 772c8f6f3bbd ("Merge tag 'for-4.11/linus-merge-signed' * of git://git.kernel.dk/linux-block") both scsi_init_rq and scsi_init_request (later renamed to scsi_mq_init_request in e7008ff5c61a) initialize the scsi_request sense buffer, so we don't need to (nor should) provide our own.

In kernel commit 772c8f6f3bbd ("Merge tag 'for-4.11/linus-merge-signed' * of
git://git.kernel.dk/linux-block") both scsi_init_rq and scsi_init_request
(later renamed to scsi_mq_init_request in e7008ff5c61a) initialize the
scsi_request sense buffer, so we don't need to (nor should) provide our own.
@bmeagherix
Copy link
Contributor Author

FWIW (and just for clarity); the kernel 5.18 commit 5b794f98074a ("scsi: core: Remove the sense and sense_len fields from struct scsi_request") means that the cmd->req.sense = cmd->sense_buffer; referred to above gets removed from scsi_mq_init_request, but backport.h was already handling this via scsi_req & SREQ_SENSE. This commit uses them to locate the sense data.

@lnocturno
Copy link
Contributor

Hi Brian,

Thank you for the patch!

Thanks,
Gleb

@lnocturno lnocturno merged commit d401702 into SCST-project:master Jan 27, 2023
@bmeagherix bmeagherix deleted the sense_data branch January 27, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants