Skip to content

Commit 75c7940

Browse files
jtlaytonChuck Lever
authored andcommitted
lockd: set missing fl_flags field when retrieving args
Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 85a0d0c commit 75c7940

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

fs/lockd/svc4proc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
5252
*filp = file;
5353

5454
/* Set up the missing parts of the file_lock structure */
55+
lock->fl.fl_flags = FL_POSIX;
5556
lock->fl.fl_file = file->f_file[mode];
5657
lock->fl.fl_pid = current->tgid;
5758
lock->fl.fl_start = (loff_t)lock->lock_start;

fs/lockd/svcproc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
7777

7878
/* Set up the missing parts of the file_lock structure */
7979
mode = lock_to_openmode(&lock->fl);
80+
lock->fl.fl_flags = FL_POSIX;
8081
lock->fl.fl_file = file->f_file[mode];
8182
lock->fl.fl_pid = current->tgid;
8283
lock->fl.fl_lmops = &nlmsvc_lock_operations;

0 commit comments

Comments
 (0)