From: hch@lst.de (Christoph Hellwig)
Subject: Persistent Reservation API V3
Date: Sat, 29 Aug 2015 15:52:25 +0200 [thread overview]
Message-ID: <20150829135225.GB13103@lst.de> (raw)
In-Reply-To: <55E10BE4.6080400@tributary.com>
On Fri, Aug 28, 2015@08:33:24PM -0500, Jeremy Linton wrote:
> Hello,
> So, looking at this, I don't see how it supports the algorithm I've been using
> for years. For that algorithm to successfully migrate PRs across multiple paths
> on a single machine without affecting other possible users (who may legitimately
> have PR'ed the same device) I need PR_IN SA 1, READ RESERVATIONS to assure the
> current node owns the reservation before attempting to preempt it on another
> path. This can also assure that the device hasn't been reserved with a legacy
> reservation.
Do you have any code describing this in more detail? We could add the
read side as well if there is strong interest.
> So, this leads me to two more general questions. The first is why isn't the PR
> API simply exported to filesystems as a general reserve/release so that the PR
> happens during mount/dismount. Then DM and friends can be setup to transparently
> migrate or share the reservation, rather than depending on userspace to handle
> these operations...
The API can be used by file systems, and my upcoming NFS SCSI layout
support was the main reason to write this.
> Also, it seems to me the use of CLEAR is extremely dangerous in any environment
> where actual arbitration or sharing of the resource is taking place.
Yes, but having it as a specific API isn't any less dangerous than
having it issued using SG_IO. Reservations really only make sense if
you assume every user of a LU is actually cooperating in some way
and not actively hostile.
next prev parent reply other threads:[~2015-08-29 13:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 16:56 Persistent Reservation API V3 Christoph Hellwig
2015-08-26 16:56 ` [PATCH 1/5] block: cleanup blkdev_ioctl Christoph Hellwig
2015-08-26 16:56 ` [PATCH 2/5] block: add an API for Persistent Reservations Christoph Hellwig
2015-08-26 16:56 ` [PATCH 3/5] sd: implement the Persistent Reservation API Christoph Hellwig
2015-08-26 16:56 ` [PATCH 4/5] dm: refactor ioctl handling Christoph Hellwig
2015-08-26 16:56 ` [PATCH 5/5] dm: add support for passing through persistent reservations Christoph Hellwig
2015-08-29 1:33 ` Persistent Reservation API V3 Jeremy Linton
2015-08-29 13:52 ` Christoph Hellwig [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-08-26 16:06 Christoph Hellwig
2015-08-26 16:10 ` Christoph Hellwig
2015-08-26 16:03 Christoph Hellwig
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=20150829135225.GB13103@lst.de \
--to=hch@lst.de \
/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;
as well as URLs for NNTP newsgroup(s).