• NeilBrown's avatar
    nfsd: prepare for supporting admin-revocation of state · 1ac3629b
    NeilBrown authored
    The NFSv4 protocol allows state to be revoked by the admin and has error
    codes which allow this to be communicated to the client.
    
    This patch
     - introduces a new state-id status SC_STATUS_ADMIN_REVOKED
       which can be set on open, lock, or delegation state.
     - reports NFS4ERR_ADMIN_REVOKED when these are accessed
     - introduces a per-client counter of these states and returns
       SEQ4_STATUS_ADMIN_STATE_REVOKED when the counter is not zero.
       Decrements this when freeing any admin-revoked state.
     - introduces stub code to find all interesting states for a given
       superblock so they can be revoked via the 'unlock_filesystem'
       file in /proc/fs/nfsd/
       No actual states are handled yet.
    Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    1ac3629b
state.h 25.4 KB