]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - fs/nfs/callback_proc.c
Merge branch 'labeled-nfs' into linux-next
[linux-imx.git] / fs / nfs / callback_proc.c
index 3d2af31e004cfc030143c2de554a7c9671b7d7b2..e6ebc4c38c812c01c79c587862ac9192d721765a 100644 (file)
@@ -415,7 +415,7 @@ __be32 nfs4_callback_sequence(struct cb_sequenceargs *args,
 
        spin_lock(&tbl->slot_tbl_lock);
        /* state manager is resetting the session */
-       if (test_bit(NFS4_SESSION_DRAINING, &clp->cl_session->session_state)) {
+       if (test_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) {
                spin_unlock(&tbl->slot_tbl_lock);
                status = htonl(NFS4ERR_DELAY);
                /* Return NFS4ERR_BADSESSION if we're draining the session