From: Olaf Kirch <okir@suse.de>
To: Sridhar Samudrala <sri@us.ibm.com>
Cc: nfs@lists.sourceforge.net, nfsv4@linux-nfs.org
Subject: Re: NFS file locking for clustered filesystems
Date: Mon, 2 Aug 2004 12:51:03 +0200 [thread overview]
Message-ID: <20040802105103.GJ25023@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0407131427580.6626@localhost.localdomain>
On Tue, Jul 13, 2004 at 02:32:12PM -0700, Sridhar Samudrala wrote:
> One simple way to avoid blocking new requests is to have lockd get the request
> and schedule the processing of the request to a separate kernel thread. But
> creating a new kernel thread or scheduling from a pool of threads for each
> request may be expensive.
I think making lockd multithreaded and whatnot is going to be very
painful.
If the file system wants to implement its own locking functions, why not
make it the file system's job to deal with blocking on (network) I/O?
You could have it return an error code indicating that the locking
operation would have blocked. Add the NLM request to the list of blocked
locks. When the file system is done, it calls us back via the normal
fl_notify callback, we retry the call, and get the real status code.
The only additional bit of lockd logic that would be needed for this
is dealing with blocking on unlock requests. Currently lockd only
expects lock requests to block.
Olaf
--
Olaf Kirch | The Hardware Gods hate me.
okir@suse.de |
---------------+
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2004-08-02 10:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-13 21:32 NFS file locking for clustered filesystems Sridhar Samudrala
2004-08-02 10:51 ` Olaf Kirch [this message]
2004-08-02 15:38 ` Trond Myklebust
2004-08-11 0:15 ` Sridhar Samudrala
2004-08-11 0:43 ` Trond Myklebust
2004-08-11 21:35 ` Sridhar Samudrala
2004-08-12 5:34 ` Trond Myklebust
2004-08-17 0:46 ` Sridhar Samudrala
2004-08-17 18:00 ` Trond Myklebust
2004-08-11 18:22 ` force unmount for NFSv3 client Goutham Kurra
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=20040802105103.GJ25023@suse.de \
--to=okir@suse.de \
--cc=nfs@lists.sourceforge.net \
--cc=nfsv4@linux-nfs.org \
--cc=sri@us.ibm.com \
/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.