mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
lockd: pass cookie in nlmsvc_testlock
Change NLM internal interface to pass more information for test lock; we need this to make sure the cookie information is pushed down to the place where we do request deferral, which is handled for testlock by the following patch. Signed-off-by: Marc Eshel <eshel@almaden.ibm.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
0e4ac9d935
commit
85f3f1b3f7
4 changed files with 7 additions and 6 deletions
|
@ -442,8 +442,9 @@ out:
|
|||
* Test for presence of a conflicting lock.
|
||||
*/
|
||||
__be32
|
||||
nlmsvc_testlock(struct nlm_file *file, struct nlm_lock *lock,
|
||||
struct nlm_lock *conflock)
|
||||
nlmsvc_testlock(struct svc_rqst *rqstp, struct nlm_file *file,
|
||||
struct nlm_lock *lock, struct nlm_lock *conflock,
|
||||
struct nlm_cookie *cookie)
|
||||
{
|
||||
dprintk("lockd: nlmsvc_testlock(%s/%ld, ty=%d, %Ld-%Ld)\n",
|
||||
file->f_file->f_path.dentry->d_inode->i_sb->s_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue