From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Matthew Wilcox <willy@debian.org>
Cc: linux-fsdevel@vger.kernel.org, neilb@cse.unsw.edu.au,
nfs-devel@linux.kernel.org, trond.myklebust@fys.uio.no,
okir@monad.swb.de
Subject: Re: lockd's interactions with locks.c
Date: 02 Aug 2002 17:56:49 +0200 [thread overview]
Message-ID: <shsfzxxckzi.fsf@charged.uio.no> (raw)
In-Reply-To: <20020801022821.E3797@parcelfarce.linux.theplanet.co.uk>
>>>>> " " == Matthew Wilcox <willy@debian.org> writes:
> There's no-one specifically listed as maintaining lockd, so i'm
> cc'ing everyone involved with NFS.
<snip>
> Now, unless we export a lock from locks.c that lockd can grab
> around all this, we're pretty much hosed. I believe that lockd
> runs with the BKL at this point, so there's no race currently.
> Here's my preferred alternative (untested, i want to get
> comments on the idea):
I'm not sure I understand how are you are planning on protecting
against races with the blocking code? For instance
lockd: Another process:
posix_lock_file();
posix_lock_file();
releases file lock;
grab_lockd_blocking_lock();
nlmsvc_insert_block();
have_been_woken_up_already = ...;
release_lockd_blocking_lock();
Is this a situation where the mysterious 'have_been_woken_up_already'
kicks in in order to tell lockd not to block after all? If so, how do
you see that part being implemented?
Cheers,
Trond
next prev parent reply other threads:[~2002-08-02 15:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-01 1:28 lockd's interactions with locks.c Matthew Wilcox
2002-08-02 15:56 ` Trond Myklebust [this message]
2002-08-02 17:21 ` Matthew Wilcox
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=shsfzxxckzi.fsf@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=linux-fsdevel@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
--cc=nfs-devel@linux.kernel.org \
--cc=okir@monad.swb.de \
--cc=willy@debian.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