summaryrefslogtreecommitdiff
path: root/net/sunrpc/cache.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-09-09 01:55:42 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-09 01:55:42 +0300
commit14e2bc4e8c40a876c1ab5597320d523c12a97f39 (patch)
tree4343c601641e0616f06917e35692523930bc04c3 /net/sunrpc/cache.c
parent8a05abd0c93841a7bbcf777ec1677a1ad9155793 (diff)
parent0c217d5066c84f67cd672cf03ec8f682e5d013c2 (diff)
downloadlinux-14e2bc4e8c40a876c1ab5597320d523c12a97f39.tar.xz
Merge tag 'nfsd-5.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fixes from Chuck Lever: - Restore performance on memory-starved servers * tag 'nfsd-5.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: SUNRPC: improve error response to over-size gss credential SUNRPC: don't pause on incomplete allocation
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r--net/sunrpc/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index 1a2c1c44bb00..59641803472c 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -803,7 +803,7 @@ static int cache_request(struct cache_detail *detail,
detail->cache_request(detail, crq->item, &bp, &len);
if (len < 0)
- return -EAGAIN;
+ return -E2BIG;
return PAGE_SIZE - len;
}