From: Kurt Garloff <garloff@suse.de>
To: Linda Lee <lindaclee2002@yahoo.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: SCSI reserve/release
Date: Thu, 27 Feb 2003 23:53:34 +0100 [thread overview]
Message-ID: <20030227225334.GB14200@nbkurt> (raw)
In-Reply-To: <20030227205135.31139.qmail@web14612.mail.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]
Hi Linda,
On Thu, Feb 27, 2003 at 12:51:35PM -0800, Linda Lee wrote:
> I'd like to simulate the SCSI-3 Persistent Group
> Reservation of Solaris on Linux using Linux
> reserve/release mechanism. My understanding is that
> to make reservation on the device on Linux, I can
> issue ioctl() with SCSI_IOCTL_SEND_COMMAND along with
> SCSI command "RESERVE" as part of the input data. It
> is similar for the release mechanism. Instead of
> "RESERVE" command in the ioctl, put "RELEASE" instead.
>
> Regarding the SCSI reset, I can issue ioctl() with
> SG_SCSI_RESET.
>
> Is my approach correct? Does anyone had done this
> before?
You can do this. But note that you will lose the reservation
on a reset of the SCSI bus which can occur due to error handling
of your box (or another one). As long as the kernel does not
keep track of reservation states (or you invent some notification
mechanism for SCSI resets to user space), you can't handle this
reliably.
Regards,
--
Kurt Garloff <garloff@suse.de> Eindhoven, NL
GPG key: See mail header, key servers SuSE Labs (Head)
SuSE Linux AG, Nuernberg, DE SCSI, Security
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2003-02-27 22:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-27 20:51 SCSI reserve/release Linda Lee
2003-02-27 22:53 ` Kurt Garloff [this message]
2003-02-27 23:32 ` Doug Ledford
2003-02-27 23:21 ` Doug Ledford
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=20030227225334.GB14200@nbkurt \
--to=garloff@suse.de \
--cc=lindaclee2002@yahoo.com \
--cc=linux-scsi@vger.kernel.org \
/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