merged into cifs-2.6.git for-next On Thu, Feb 13, 2020 at 10:35 PM Murphy Zhou <jencce.kernel@xxxxxxxxx> wrote: > > Now child can't unlock the same file that has been locked by > parent. Fix this by not skipping unlock if requesting from > different process. > > Patch tested by LTP and xfstests using samba server. > > Signed-off-by: Murphy Zhou <jencce.kernel@xxxxxxxxx> > --- > fs/cifs/smb2file.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/cifs/smb2file.c b/fs/cifs/smb2file.c > index afe1f03aabe3..b5bca0e13d51 100644 > --- a/fs/cifs/smb2file.c > +++ b/fs/cifs/smb2file.c > @@ -151,8 +151,6 @@ smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, > (flock->fl_start + length) < > (li->offset + li->length)) > continue; > - if (current->tgid != li->pid) > - continue; > if (cinode->can_cache_brlcks) { > /* > * We can cache brlock requests - simply remove a lock > -- > 2.20.1 > -- Thanks, Steve