From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: wenxiong@linux.vnet.ibm.com
Cc: jejb@linux.ibm.com, linux-scsi@vger.kernel.org,
brking@linux.vnet.ibm.com, martin.petersen@oracle.com,
wenxiong@us.ibm.com
Subject: Re: [PATCH V2 1/1] scsi/ses: Saw "Failed to get diagnostic page 0x1"
Date: Tue, 14 Sep 2021 11:52:22 -0400 [thread overview]
Message-ID: <yq1r1drxjl4.fsf@ca-mkp.ca.oracle.com> (raw)
In-Reply-To: <1631300645-27662-1-git-send-email-wenxiong@linux.vnet.ibm.com> (wenxiong@linux.vnet.ibm.com's message of "Fri, 10 Sep 2021 14:04:05 -0500")
Wendy,
A few small additional nits...
> From: Wen Xiong <root@ltczz405-lp2.aus.stglabs.ibm.com>
Please make sure your email address is correct.
> Signed-Off-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
This should be Signed-off-by: and you need a space before your email
address.
> + ret = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buf,
> + bufflen, &sshdr, NULL, SES_TIMEOUT, SES_RETRIES, NULL);
The sense header goes in the field before SES_TIMEOUT:
int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
int data_direction, void *buffer, unsigned bufflen,
unsigned char *sense, struct scsi_sense_hdr *sshdr,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
int timeout, int retries, u64 flags, req_flags_t rq_flags,
^^^^^^^^^^^
int *resid)
Thanks!
PS. Bonus points for whoever fixes up the scsi_execute calls to have
less than 10,000 arguments. One would be good. And some sensible input
validation/type checking.
--
Martin K. Petersen Oracle Linux Engineering
prev parent reply other threads:[~2021-09-14 15:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-10 19:04 [PATCH V2 1/1] scsi/ses: Saw "Failed to get diagnostic page 0x1" wenxiong
2021-09-11 0:23 ` kernel test robot
2021-09-11 0:44 ` James Bottomley
[not found] ` <f754c31d348465f96ad4cd7541a86168@imap.linux.ibm.com>
2021-09-13 21:13 ` Martin K. Petersen
[not found] ` <OF31B21169.103CCF65-ON0025874F.00776468-0025874F.00778F79@ibm.com>
2021-09-14 15:27 ` Martin K. Petersen
2021-09-14 15:50 ` James Bottomley
2021-09-14 18:13 ` Martin K. Petersen
2021-09-14 15:52 ` Martin K. Petersen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yq1r1drxjl4.fsf@ca-mkp.ca.oracle.com \
--to=martin.petersen@oracle.com \
--cc=brking@linux.vnet.ibm.com \
--cc=jejb@linux.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=wenxiong@linux.vnet.ibm.com \
--cc=wenxiong@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox