From: Daniel Wagner <dwagner@suse.de>
To: Sagi Grimberg <sagi@grimberg.me>
Cc: Caleb Sander <csander@purestorage.com>,
Keith Busch <kbusch@kernel.org>,
linux-nvme@lists.infradead.org, Daniel Wagner <dwagner@suse.de>
Subject: [PATCH libnvme v4 2/2] fabrics: Do not pass disable_sqflow if not supported
Date: Tue, 8 Aug 2023 15:30:28 +0200 [thread overview]
Message-ID: <20230808133028.14643-3-dwagner@suse.de> (raw)
In-Reply-To: <20230808133028.14643-1-dwagner@suse.de>
Do not try to use disable_sqflow if the kernel actually supports this
option.
Reported-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
src/nvme/fabrics.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/nvme/fabrics.c b/src/nvme/fabrics.c
index 9725eeb3cda8..11d99580072a 100644
--- a/src/nvme/fabrics.c
+++ b/src/nvme/fabrics.c
@@ -1031,8 +1031,11 @@ nvme_ctrl_t nvmf_connect_disc_entry(nvme_host_t h,
return NULL;
}
- if (e->treq & NVMF_TREQ_DISABLE_SQFLOW)
+ if (e->treq & NVMF_TREQ_DISABLE_SQFLOW &&
+ nvmf_check_option(h->r, disable_sqflow))
c->cfg.disable_sqflow = true;
+ else
+ c->cfg.disable_sqflow = false;
if (e->trtype == NVMF_TRTYPE_TCP &&
(e->treq & NVMF_TREQ_REQUIRED ||
--
2.41.0
next prev parent reply other threads:[~2023-08-08 13:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-08 13:30 [PATCH libnvme v4 0/2] Do not pass disable_sqflow if not supported Daniel Wagner
2023-08-08 13:30 ` [PATCH libnvme v4 1/2] fabrics: Read the supported options lazy Daniel Wagner
2023-08-08 19:50 ` Chaitanya Kulkarni
2023-08-09 10:03 ` Daniel Wagner
2023-08-08 13:30 ` Daniel Wagner [this message]
2023-08-08 19:50 ` [PATCH libnvme v4 2/2] fabrics: Do not pass disable_sqflow if not supported Chaitanya Kulkarni
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=20230808133028.14643-3-dwagner@suse.de \
--to=dwagner@suse.de \
--cc=csander@purestorage.com \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/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