summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4state.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-12-03 20:58:56 (GMT)
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-12-04 02:26:36 (GMT)
commit44ed3556bad809797f7b06a4a88918fd8a23d6fe (patch)
treec4e9fb126d25d2f08e972365a480e40612502850 /fs/nfs/nfs4state.c
parent24e93025ee434a58d35e5abb283c5bcc9a13e477 (diff)
downloadlinux-44ed3556bad809797f7b06a4a88918fd8a23d6fe.tar.xz
NFS4ERR_FILE_OPEN handling in Linux/NFS
NFS4ERR_FILE_OPEN is return by the server when an operation cannot be performed because the file is currently open and local (to the server) semantics prohibit the operation while the file is open. A typical case is a RENAME operation on an MS-Windows platform, which prevents rename while the file is open. While it is possible that such a condition is transitory, it is also very possible that the file will be held open for an extended period of time thus preventing the operation. The current behaviour of Linux/NFS is to retry the operation indefinitely. This is not appropriate - we do not expect a rename to take an arbitrary amount of time to complete. Rather, and error should be returned. The most obvious error code would be EBUSY, which is a legal at least for 'rename' and 'unlink', and accurately captures the reason for the error. This patch allows a few retries until about 2 seconds have elapsed, then returns EBUSY. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
0 files changed, 0 insertions, 0 deletions