diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-03-18 19:45:14 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-03-25 12:04:10 -0400 |
commit | c58c844187df61ef7cc103d0abb5dd6198bcfcd6 (patch) | |
tree | 0e435c37318e290346f3bed74bba05350ec4dd2f /include/linux/nfs_fs.h | |
parent | 5d422301f97b821301efcdb6fc9d1a83a5c102d6 (diff) | |
download | op-kernel-dev-c58c844187df61ef7cc103d0abb5dd6198bcfcd6.zip op-kernel-dev-c58c844187df61ef7cc103d0abb5dd6198bcfcd6.tar.gz |
NFS: Don't accept more reads/writes if the open context recovery failed
If the state recovery failed, we want to ensure that the application
doesn't try to use the same file descriptor for more reads or writes.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 1cc2568..f6b1956 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h @@ -77,6 +77,7 @@ struct nfs_open_context { unsigned long flags; #define NFS_CONTEXT_ERROR_WRITE (0) #define NFS_CONTEXT_RESEND_WRITES (1) +#define NFS_CONTEXT_BAD (2) int error; struct list_head list; |