On Wed, 2008-05-07 at 14:00 -0600, Matthew Wilcox wrote:
Poor timing: we're all preparing for and travelling to the annual
Connectathon interoperability testing conference which starts tomorrow.
Yes. fs/nfs is just reusing the code in fs/locks.c in order to track the
locks it holds on the server. We could alternatively have coded a
private lock implementation, but this seemed easier.
I'm not sure what you mean when you talk about lockd keeping track of
the locks it owns. It has to keep those locks on inode->i_flock in order
to make them visible to the host filesystem...
All lockd really needs, is the ability to find a lock it owns, and then
obtain a copy. As for the nfs client, I suspect we can make do with
something similar...
Cheers
Trond
--