]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: Don't loop forever in nfs4_proc_create_session
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 24 Apr 2011 18:28:18 +0000 (14:28 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 24 Apr 2011 18:28:18 +0000 (14:28 -0400)
commitcbbe8566540e0b498860b41cd1424aea87635764
treeb45b1a58287e2e77afb1da4ed8ead0c3a8688c2d
parent5ee3cf8eb56f5acee9f980048a1ec0f03a61ccec
NFSv4.1: Don't loop forever in nfs4_proc_create_session

If a server for some reason keeps sending NFS4ERR_DELAY errors, we can end
up looping forever inside nfs4_proc_create_session, and so the usual
mechanisms for detecting if the nfs_client is dead don't work.

Fix this by ensuring that we loop inside the nfs4_state_manager thread
instead.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c
include/linux/nfs_fs_sb.h