mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
671fb89695
commit
0a57cdac3f
2 changed files with 3 additions and 0 deletions
|
@ -186,6 +186,8 @@ static int filelayout_async_handle_error(struct rpc_task *task,
|
||||||
case -EPIPE:
|
case -EPIPE:
|
||||||
dprintk("%s DS connection error %d\n", __func__,
|
dprintk("%s DS connection error %d\n", __func__,
|
||||||
task->tk_status);
|
task->tk_status);
|
||||||
|
if (!filelayout_test_devid_invalid(devid))
|
||||||
|
_pnfs_return_layout(state->inode);
|
||||||
filelayout_mark_devid_invalid(devid);
|
filelayout_mark_devid_invalid(devid);
|
||||||
rpc_wake_up(&tbl->slot_tbl_waitq);
|
rpc_wake_up(&tbl->slot_tbl_waitq);
|
||||||
/* fall through */
|
/* fall through */
|
||||||
|
|
|
@ -692,6 +692,7 @@ out:
|
||||||
dprintk("<-- %s status: %d\n", __func__, status);
|
dprintk("<-- %s status: %d\n", __func__, status);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(_pnfs_return_layout);
|
||||||
|
|
||||||
bool pnfs_roc(struct inode *ino)
|
bool pnfs_roc(struct inode *ino)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue