mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	lockd: set missing fl_flags field when retrieving args
Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
		
							parent
							
								
									85a0d0c9a5
								
							
						
					
					
						commit
						75c7940d2a
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -52,6 +52,7 @@ nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
 | 
			
		|||
		*filp = file;
 | 
			
		||||
 | 
			
		||||
		/* Set up the missing parts of the file_lock structure */
 | 
			
		||||
		lock->fl.fl_flags = FL_POSIX;
 | 
			
		||||
		lock->fl.fl_file  = file->f_file[mode];
 | 
			
		||||
		lock->fl.fl_pid = current->tgid;
 | 
			
		||||
		lock->fl.fl_start = (loff_t)lock->lock_start;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -77,6 +77,7 @@ nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
 | 
			
		|||
 | 
			
		||||
		/* Set up the missing parts of the file_lock structure */
 | 
			
		||||
		mode = lock_to_openmode(&lock->fl);
 | 
			
		||||
		lock->fl.fl_flags = FL_POSIX;
 | 
			
		||||
		lock->fl.fl_file  = file->f_file[mode];
 | 
			
		||||
		lock->fl.fl_pid = current->tgid;
 | 
			
		||||
		lock->fl.fl_lmops = &nlmsvc_lock_operations;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue