]> err.no Git - linux-2.6/blobdiff - fs/nfs/nfs4state.c
rtl8187: Improve wireless statistics for RTL8187B
[linux-2.6] / fs / nfs / nfs4state.c
index 5a1e02c8b75ebabf60888da52569e5a137af9c60..401ef8b28f979231cc291ad016586abd353eff42 100644 (file)
@@ -282,7 +282,7 @@ nfs4_alloc_state_owner(void)
        return sp;
 }
 
-void
+static void
 nfs4_drop_state_owner(struct nfs4_state_owner *sp)
 {
        if (!RB_EMPTY_NODE(&sp->so_client_node)) {
@@ -940,7 +940,6 @@ static int reclaimer(void *ptr)
        allow_signal(SIGKILL);
 
        /* Ensure exclusive access to NFSv4 state */
-       lock_kernel();
        down_write(&clp->cl_sem);
        /* Are there any NFS mounts out there? */
        if (list_empty(&clp->cl_superblocks))
@@ -1000,7 +999,6 @@ restart_loop:
        nfs_delegation_reap_unclaimed(clp);
 out:
        up_write(&clp->cl_sem);
-       unlock_kernel();
        if (status == -NFS4ERR_CB_PATH_DOWN)
                nfs_handle_cb_pathdown(clp);
        nfs4_clear_recover_bit(clp);