From: "Aurélien Aptel" <aaptel@suse.com>
To: Shyam Prasad N <nspmangalore@gmail.com>,
CIFS <linux-cifs@vger.kernel.org>,
Steve French <smfrench@gmail.com>,
Pavel Shilovsky <piastryyy@gmail.com>,
ronnie sahlberg <ronniesahlberg@gmail.com>,
sribhat.msa@outlook.com,
samba-technical <samba-technical@lists.samba.org>
Subject: Re: [PATCH] cifs: Changes made to crediting code to make debugging easier.
Date: Mon, 01 Feb 2021 11:43:00 +0100 [thread overview]
Message-ID: <874kiw9ih7.fsf@suse.com> (raw)
In-Reply-To: <CANT5p=p60ahfnrxU=sazMszPaxWWp4YLKiDWkZs0mf8iie-TbQ@mail.gmail.com>
Shyam Prasad N <nspmangalore@gmail.com> writes:
> Specifically, I keen on your views on the following:
> @@ -1159,7 +1181,9 @@ compound_send_recv(const unsigned int xid,
> struct cifs_ses *ses,
> /*
> * Compounding is never used during session establish.
> */
> - if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP))
> + if ((ses->status == CifsNew) ||
> + (optype & CIFS_NEG_OP) ||
> + (optype & CIFS_SESS_OP))
> smb311_update_preauth_hash(ses, rqst[0].rq_iov,
> rqst[0].rq_nvec);
>
> @@ -1224,7 +1248,9 @@ compound_send_recv(const unsigned int xid,
> struct cifs_ses *ses,
> /*
> * Compounding is never used during session establish.
> */
> - if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP)) {
> + if ((ses->status == CifsNew) ||
> + (optype & CIFS_NEG_OP) ||
> + (optype & CIFS_SESS_OP)) {
> struct kvec iov = {
> .iov_base = resp_iov[0].iov_base,
> .iov_len = resp_iov[0].iov_len
preauth should be updated for both negprot and sess_setup (except last
response from server) so that looks correct. But ses->status will be
CifsNew until its fully established (covering the SESS scenario) so this
shouldn't change anything. You can test this code path by mounting with
vers=3.1.1 with and without multichannel.
Also there are no 80 columns limit anymore, I think it's more readable
as 1 line.
Cheers,
--
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)
next prev parent reply other threads:[~2021-02-01 10:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-30 13:03 [PATCH] cifs: Changes made to crediting code to make debugging easier Shyam Prasad N
2021-02-01 10:43 ` Aurélien Aptel [this message]
2021-02-04 7:45 ` Shyam Prasad N
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=874kiw9ih7.fsf@suse.com \
--to=aaptel@suse.com \
--cc=linux-cifs@vger.kernel.org \
--cc=nspmangalore@gmail.com \
--cc=piastryyy@gmail.com \
--cc=ronniesahlberg@gmail.com \
--cc=samba-technical@lists.samba.org \
--cc=smfrench@gmail.com \
--cc=sribhat.msa@outlook.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.