lockd: simplify nlmsvc_grant_blocked
authorAndy Adamson <andros@citi.umich.edu>
Mon, 20 Mar 2006 18:44:25 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:25 +0000 (13:44 -0500)
commit5de0e5024a4e21251fd80dbfdb83316ce97086bc
treefa34eeee2aa007fb49b34c45e55aafc8b67c6e37
parent15dadef9460ad8d3b1d5ede1c1697dc79af44a72
lockd: simplify nlmsvc_grant_blocked

Reorganize nlmsvc_grant_blocked() to make full use of posix_lock_file().  Note
that there's no need for separate calls to posix_test_lock(),
posix_locks_deadlock(), or posix_block_lock().

Signed-off-by: Andy Adamson <andros@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/svclock.c