From: Trond Myklebust Date: Sat, 23 Mar 2013 19:22:45 +0000 (-0400) Subject: NFSv4: Add a mapping for NFS4ERR_FILE_OPEN in nfs4_map_errors X-Git-Tag: v3.12-rc1~841^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e3cf2415269894895074f139ef2e95ef14ddd5d;p=kernel%2Fkernel-generic.git NFSv4: Add a mapping for NFS4ERR_FILE_OPEN in nfs4_map_errors With unlink is an asynchronous operation in the sillyrename case, it expects nfs4_async_handle_error() to map the error correctly. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 06e5a72..3e7d42f 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -107,6 +107,8 @@ static int nfs4_map_errors(int err) return -EPROTONOSUPPORT; case -NFS4ERR_ACCESS: return -EACCES; + case -NFS4ERR_FILE_OPEN: + return -EBUSY; default: dprintk("%s could not handle NFSv4 error %d\n", __func__, -err);