diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 8dd61eb86f6f..acd20c549ce2 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -1317,7 +1317,8 @@ _nfs4_opendata_reclaim_to_nfs4_state(struct nfs4_opendata *data) | |||
1317 | struct nfs4_state *state = data->state; | 1317 | struct nfs4_state *state = data->state; |
1318 | int ret; | 1318 | int ret; |
1319 | 1319 | ||
1320 | if (!data->rpc_done) { | 1320 | /* allow cached opens (!rpc_done && !rpc_status) */ |
1321 | if (!data->rpc_done && data->rpc_status) { | ||
1321 | ret = data->rpc_status; | 1322 | ret = data->rpc_status; |
1322 | goto err; | 1323 | goto err; |
1323 | } | 1324 | } |