can we combine posix_test_lock and posix_lock_file ?

J. Bruce Fields bfields at fieldses.org
Mon Dec 18 09:13:19 EST 2006


On Mon, Dec 18, 2006 at 05:55:27AM -0800, Dharmosoth Seetharam wrote:
> fs/lockd/svclock.c : nlmsvc_lock()
> 
> if (!(conflock = posix_test_lock(&file->f_file,
> &lock->fl))) {
> /*              error = posix_lock_file(&file->f_file,
> &lock->fl);

That's been changed, and isn't in any version of the code since about
2.6.17.

--b.


More information about the NFSv4 mailing list