diff options
author | Andy Adamson <andros@netapp.com> | 2012-04-27 17:53:50 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-19 17:55:31 -0400 |
commit | 0a57cdac3fb9d249f4fbbc745c01b9292ef8c1b7 (patch) | |
tree | 8fb264e116c6c29ae0ed38f8c8065074bc288f55 /fs/nfs/nfs4filelayout.c | |
parent | 671fb89695fee0c70a969371efd38ed30be76a8a (diff) |
NFSv4.1 send layoutreturn to fence disconnected data server
Let the MDS know that you are redirecting I/O from pNFS to MDS.
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4filelayout.c')
-rw-r--r-- | fs/nfs/nfs4filelayout.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index a63062d3882f..c6b7c1834947 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c | |||
@@ -186,6 +186,8 @@ static int filelayout_async_handle_error(struct rpc_task *task, | |||
186 | case -EPIPE: | 186 | case -EPIPE: |
187 | dprintk("%s DS connection error %d\n", __func__, | 187 | dprintk("%s DS connection error %d\n", __func__, |
188 | task->tk_status); | 188 | task->tk_status); |
189 | if (!filelayout_test_devid_invalid(devid)) | ||
190 | _pnfs_return_layout(state->inode); | ||
189 | filelayout_mark_devid_invalid(devid); | 191 | filelayout_mark_devid_invalid(devid); |
190 | rpc_wake_up(&tbl->slot_tbl_waitq); | 192 | rpc_wake_up(&tbl->slot_tbl_waitq); |
191 | /* fall through */ | 193 | /* fall through */ |