diff options
| author | Tejun Heo <tj@kernel.org> | 2013-01-23 09:31:01 -0800 | 
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2013-01-23 09:31:01 -0800 | 
| commit | c14afb82ffff5903a701a9fb737ac20f36d1f755 (patch) | |
| tree | 304dcc7b1d7b9a5f564f7e978228e61ef41fbef2 /fs/nfs/proc.c | |
| parent | 0fdff3ec6d87856cdcc99e69cf42143fdd6c56b4 (diff) | |
| parent | 1d8549085377674224bf30a368284c391a3ce40e (diff) | |
| download | olio-linux-3.10-c14afb82ffff5903a701a9fb737ac20f36d1f755.tar.xz olio-linux-3.10-c14afb82ffff5903a701a9fb737ac20f36d1f755.zip  | |
Merge branch 'master' into for-3.9-async
To receive f56c3196f251012de9b3ebaff55732a9074fdaae ("async: fix
__lowest_in_progress()").
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs/nfs/proc.c')
| -rw-r--r-- | fs/nfs/proc.c | 43 | 
1 files changed, 0 insertions, 43 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index 50a88c3546e..f084dac948e 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c @@ -47,39 +47,6 @@  #define NFSDBG_FACILITY		NFSDBG_PROC  /* - * wrapper to handle the -EKEYEXPIRED error message. This should generally - * only happen if using krb5 auth and a user's TGT expires. NFSv2 doesn't - * support the NFSERR_JUKEBOX error code, but we handle this situation in the - * same way that we handle that error with NFSv3. - */ -static int -nfs_rpc_wrapper(struct rpc_clnt *clnt, struct rpc_message *msg, int flags) -{ -	int res; -	do { -		res = rpc_call_sync(clnt, msg, flags); -		if (res != -EKEYEXPIRED) -			break; -		freezable_schedule_timeout_killable(NFS_JUKEBOX_RETRY_TIME); -		res = -ERESTARTSYS; -	} while (!fatal_signal_pending(current)); -	return res; -} - -#define rpc_call_sync(clnt, msg, flags)	nfs_rpc_wrapper(clnt, msg, flags) - -static int -nfs_async_handle_expired_key(struct rpc_task *task) -{ -	if (task->tk_status != -EKEYEXPIRED) -		return 0; -	task->tk_status = 0; -	rpc_restart_call(task); -	rpc_delay(task, NFS_JUKEBOX_RETRY_TIME); -	return 1; -} - -/*   * Bare-bones access to getattr: this is for nfs_read_super.   */  static int @@ -364,8 +331,6 @@ static void nfs_proc_unlink_rpc_prepare(struct rpc_task *task, struct nfs_unlink  static int nfs_proc_unlink_done(struct rpc_task *task, struct inode *dir)  { -	if (nfs_async_handle_expired_key(task)) -		return 0;  	nfs_mark_for_revalidate(dir);  	return 1;  } @@ -385,8 +350,6 @@ static int  nfs_proc_rename_done(struct rpc_task *task, struct inode *old_dir,  		     struct inode *new_dir)  { -	if (nfs_async_handle_expired_key(task)) -		return 0;  	nfs_mark_for_revalidate(old_dir);  	nfs_mark_for_revalidate(new_dir);  	return 1; @@ -642,9 +605,6 @@ static int nfs_read_done(struct rpc_task *task, struct nfs_read_data *data)  {  	struct inode *inode = data->header->inode; -	if (nfs_async_handle_expired_key(task)) -		return -EAGAIN; -  	nfs_invalidate_atime(inode);  	if (task->tk_status >= 0) {  		nfs_refresh_inode(inode, data->res.fattr); @@ -671,9 +631,6 @@ static int nfs_write_done(struct rpc_task *task, struct nfs_write_data *data)  {  	struct inode *inode = data->header->inode; -	if (nfs_async_handle_expired_key(task)) -		return -EAGAIN; -  	if (task->tk_status >= 0)  		nfs_post_op_update_inode_force_wcc(inode, data->res.fattr);  	return 0;  |