Commit e72a7395 authored by Mike Snitzer's avatar Mike Snitzer Committed by Anna Schumaker
Browse files

NFS/localio: remove -EAGAIN handling in nfs_local_doio()



Handling -EAGAIN in nfs_local_doio() was introduced with commit
0978e5b8 (nfs_do_local_{read,write} were made to have negative
checks for correspoding iter method) but commit e43e9a3a
since eliminated the possibility for this -EAGAIN early return.

So remove nfs_local_doio()'s -EAGAIN handling that calls
nfs_localio_disable_client() -- while it should never happen from
nfs_do_local_{read,write} this particular -EAGAIN handling is now
"dead" and so it has become a liability.

Fixes: e43e9a3a ("nfs/localio: refactor iocb initialization")
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarAnna Schumaker <anna.schumaker@oracle.com>
parent 9bb0060f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -985,8 +985,6 @@ int nfs_local_doio(struct nfs_client *clp, struct nfsd_file *localio,
	}

	if (status != 0) {
		if (status == -EAGAIN)
			nfs_localio_disable_client(clp);
		nfs_local_iocb_release(iocb);
		hdr->task.tk_status = status;
		nfs_local_hdr_release(hdr, call_ops);