From: Steve Dickson <SteveD@redhat.com>
To: Neil Brown <neilb@suse.de>
Cc: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] nfs-utils: sm-notify does not remove its pid file.
Date: Mon, 10 Dec 2007 20:21:49 -0500 [thread overview]
Message-ID: <475DE62D.7020305@RedHat.com> (raw)
In-Reply-To: <18269.49269.575546.943037-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
Neil Brown wrote:
> I was under the impression that /var/run was always cleaned out on
> reboot, so this shouldn't be a problem. Is my impression wrong?
I don't think there are any guarantees about this. I was under
the impression that the individual init scripts were suppose
to clean those up and I know I fixed a few bugs in that area. ;-)
>
> And I think the point of the lock file was the sm-notify would only
> run once per reboot.
Why impose a limit? Why not recover lock at any point?
> But I think that removing the lock file when sm-notify completes is
> wrong.
A side effect of all this is if rpc.statd is restarted and that
file is not cleaned up the client will never even try to recover any locks.
That's definitely not a good thing... imho...
>
> Note the comment in sm-notify.c:
>
> /*
> * Record pid in /var/run/sm-notify.pid
> * This file should remain until a reboot, even if the
> * program exits.
> * If file already exists, fail.
> */
I guess I just don't understand why a pid file need to exist after a
process is gone. Especially if its going to cause the next existence
to imminently exit (potentially causing data corruption).
That just does not seem very robust...
steved.
next prev parent reply other threads:[~2007-12-11 1:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-10 19:21 [PATCH] nfs-utils: sm-notify does not remove its pid file Steve Dickson
2007-12-10 22:40 ` Neil Brown
[not found] ` <18269.49269.575546.943037-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2007-12-11 1:21 ` Steve Dickson [this message]
2007-12-11 3:28 ` Neil Brown
[not found] ` <18270.992.262485.318331-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2007-12-11 14:28 ` Steve Dickson
2007-12-12 23:11 ` Neil Brown
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=475DE62D.7020305@RedHat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.