Re: [PATCH 1/2] NFSv4.x: Fix handling of partially delegated locks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2013-05-03 at 12:12 -0400, Chuck Lever wrote:
> Hi-
> 
> On May 2, 2013, at 1:19 PM, Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> wrote:
> 
> > If a NFS client receives a delegation for a file after it has taken
> > a lock on that file, we can currently end up in a situation where
> > we mistakenly skip unlocking that file.
> > 
> > The following patch swaps an erroneous check in nfs4_proc_unlck for
> > whether or not the file has a delegation to one which checks whether
> > or not we hold a lock stateid for that file.
> > 
> > Reported-by: Chuck Lever <Chuck.Lever@xxxxxxxxxx>
> > Signed-off-by: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx>
> > Cc: stable@xxxxxxxxxxxxxxx
> 
> Although this patch may apply cleanly to, say, 3.0-stable, the result is that LOCKUs now never appear on the wire.  It seems that older stable kernels are missing something that is needed to make this simple fix work correctly.

Yes. There is a dependency on commit
795a88c968eef031f370973512b42124bacb2f17 (NFSv4: Convert the
nfs4_lock_state->ls_flags to a bit field).

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@xxxxxxxxxx
www.netapp.com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux