diff options
-rw-r--r-- | fs/nfsd/nfs4state.c | 2 | ||||
-rw-r--r-- | include/linux/nfsd/nfsd.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index b96714ae3dd7..3647c942915e 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -1295,7 +1295,7 @@ nfs4_share_conflict(struct svc_fh *current_fh, unsigned int deny_type) | |||
1295 | fp = find_file(ino); | 1295 | fp = find_file(ino); |
1296 | if (!fp) | 1296 | if (!fp) |
1297 | return nfs_ok; | 1297 | return nfs_ok; |
1298 | ret = nfserr_share_denied; | 1298 | ret = nfserr_locked; |
1299 | /* Search for conflicting share reservations */ | 1299 | /* Search for conflicting share reservations */ |
1300 | list_for_each_entry(stp, &fp->fi_stateids, st_perfile) { | 1300 | list_for_each_entry(stp, &fp->fi_stateids, st_perfile) { |
1301 | if (test_bit(deny_type, &stp->st_deny_bmap) || | 1301 | if (test_bit(deny_type, &stp->st_deny_bmap) || |
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h index c2da1b62d416..6d5a24f3fc6d 100644 --- a/include/linux/nfsd/nfsd.h +++ b/include/linux/nfsd/nfsd.h | |||
@@ -231,6 +231,7 @@ void nfsd_lockd_shutdown(void); | |||
231 | #define nfserr_reclaim_bad __constant_htonl(NFSERR_RECLAIM_BAD) | 231 | #define nfserr_reclaim_bad __constant_htonl(NFSERR_RECLAIM_BAD) |
232 | #define nfserr_badname __constant_htonl(NFSERR_BADNAME) | 232 | #define nfserr_badname __constant_htonl(NFSERR_BADNAME) |
233 | #define nfserr_cb_path_down __constant_htonl(NFSERR_CB_PATH_DOWN) | 233 | #define nfserr_cb_path_down __constant_htonl(NFSERR_CB_PATH_DOWN) |
234 | #define nfserr_locked __constant_htonl(NFSERR_LOCKED) | ||
234 | 235 | ||
235 | /* error codes for internal use */ | 236 | /* error codes for internal use */ |
236 | /* if a request fails due to kmalloc failure, it gets dropped. | 237 | /* if a request fails due to kmalloc failure, it gets dropped. |