From: Martin Wilck <mwilck@suse.com>
To: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: dm-devel@redhat.com, Martin Wilck <mwilck@suse.com>
Subject: [PATCH 2/2] multipathd: try SCSI persistent reservations for SCSI only
Date: Mon, 1 Oct 2018 20:45:07 +0200 [thread overview]
Message-ID: <20181001184507.4162-3-mwilck@suse.com> (raw)
In-Reply-To: <20181001184507.4162-1-mwilck@suse.com>
This avoids error messages when PERSISTENT RESERVE IN ioctls
are tried on non-SCSI devices.
Signed-off-by: Martin Wilck <mwilck@suse.com>
---
multipathd/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/multipathd/main.c b/multipathd/main.c
index cc493c18..43e255e0 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -3129,6 +3129,9 @@ int mpath_pr_event_handle(struct path *pp)
pthread_attr_t attr;
struct multipath * mpp;
+ if (pp->bus != SYSFS_BUS_SCSI)
+ return 0;
+
mpp = pp->mpp;
if (!get_be64(mpp->reservation_key))
--
2.19.0
next prev parent reply other threads:[~2018-10-01 18:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-01 18:45 [PATCH 0/2] multipath-tools: avoid error messages with NVMe Martin Wilck
2018-10-01 18:45 ` [PATCH 1/2] libmultipath: allow sysfs_pathinfo to return SKIPPED Martin Wilck
2018-10-01 18:45 ` Martin Wilck [this message]
2018-10-01 20:19 ` [PATCH 2/2] multipathd: try SCSI persistent reservations for SCSI only Christoph Hellwig
2018-10-02 17:36 ` [PATCH 0/2] multipath-tools: avoid error messages with NVMe Benjamin Marzinski
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=20181001184507.4162-3-mwilck@suse.com \
--to=mwilck@suse.com \
--cc=christophe.varoqui@opensvc.com \
--cc=dm-devel@redhat.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