From: Juan Gomez <juang@us.ibm.com>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: alan@lxorguk.ukuu.org.uk, hch@infradead.org,
linux-kernel@vger.kernel.org, linux-kernel-owner@vger.kernel.org
Subject: Re: NFS lockd patch proposal for user-level control of the grace period
Date: Mon, 9 Sep 2002 09:31:24 -0700 [thread overview]
Message-ID: <OF56438CB7.84FFBB03-ON87256C2F.005A4D15@us.ibm.com> (raw)
I think either way we get to the kernel would be ok with me. I picked
sysctl because some comments in the code susggested somebody already though
of supporting a sysctl gate to user land to export
grace period control, also Chrisptop suggested this was the way to go when
I previously proposed using the raw proc filesystem. I think what is nice
about sysctl is that it is extensible, If we use signals and some other
folks keep on using signals for other control purposed then they will
eventually run out and they will have to add sysctl anyway. Said that I
think either way serves the purpose I want.
Juan
|---------+---------------------------------->
| | Neil Brown |
| | <neilb@cse.unsw.edu.au>|
| | Sent by: |
| | linux-kernel-owner@vger|
| | .kernel.org |
| | |
| | |
| | 09/08/02 05:27 PM |
| | |
|---------+---------------------------------->
>-----------------------------------------------------------------------------------------------------------------------------|
| |
| To: Juan Gomez/Almaden/IBM@IBMUS |
| cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, hch@infradead.org, linux-kernel@vger.kernel.org |
| Subject: Re: NFS lockd patch proposal for user-level control of the grace period |
| |
| |
>-----------------------------------------------------------------------------------------------------------------------------|
On Friday September 6, juang@us.ibm.com wrote:
>
>
>
>
> Christoph, Alan, Neil,
>
> Attached you will find the patch with the sysctl implementation of my
> previous patch to enable grace period control from user-land.
> Please let me know if this looks good enough for inclusion in the kernel
> distribution or whether I still need to do something else.
> Note this piece is derived from net/sunrpc/sysctl.c, which by the way I
> think has a problem with the READ/WRITE verifys which seem
> to be swicthed which I fixed in lockd version but not there, you may
want
> to take a look at net/sunrpc/sysctl.c and fix that although that's a
minor
> thing.
>
> (See attached file: lockd-sysctl.patch)
>
I still haven't managed to find out exactly what you want to do with
this, and hence whether it is appropriate.
You mentioned in another Email that this was for a High Availability
setup where one server might take-over a filesystem that another
server was previously serving.
If this is the case, do you really want to change the grace period, or
do you really want to re-start the grace period.
If that is what you really want, then I think that sysctl is
un-necessary and a simple signal would do the trick.
Currently, SIGKILL will
1/ drop all locks held for clients
2/ restart the grace period.
it would probably be quite sensible (and trivial to code) for SIGHUP
(say) to restart the grace period without dropping the locks.
Would this be suitable for you?
NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2002-09-09 16:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-09 16:31 Juan Gomez [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-09-06 22:36 Juan Gomez
2002-09-07 1:36 ` Christoph Hellwig
2002-09-07 13:16 ` Daniel Egger
2002-09-09 0:27 ` Neil Brown
2002-08-27 21:06 Juan Gomez
2002-08-27 21:33 ` 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=OF56438CB7.84FFBB03-ON87256C2F.005A4D15@us.ibm.com \
--to=juang@us.ibm.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=hch@infradead.org \
--cc=linux-kernel-owner@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
/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
all inboxes | Powered by JetHome®