• J. Bruce Fields's avatar
    nfs: don't allow reexport reclaims · bb0a55bb
    J. Bruce Fields authored
    In the reexport case, nfsd is currently passing along locks with the
    reclaim bit set.  The client sends a new lock request, which is granted
    if there's currently no conflict--even if it's possible a conflicting
    lock could have been briefly held in the interim.
    
    We don't currently have any way to safely grant reclaim, so for now
    let's just deny them all.
    
    I'm doing this by passing the reclaim bit to nfs and letting it fail the
    call, with the idea that eventually the client might be able to do
    something more forgiving here.
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    Acked-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    bb0a55bb
nfsproc.c 23.3 KB