]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_alloc: Correct return value of populated elements if bulk array is populated
authorMel Gorman <mgorman@techsingularity.net>
Mon, 28 Jun 2021 15:02:19 +0000 (16:02 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Jun 2021 17:00:54 +0000 (10:00 -0700)
commite4a721fd2837525653ad61084d3c24f6c1c1662b
treefec718951629ea3768235156e2fade8be1be80ec
parent00b75b3c3f0be90bc470e6a7c2a896c151d7e944
mm/page_alloc: Correct return value of populated elements if bulk array is populated

Dave Jones reported the following

This made it into 5.13 final, and completely breaks NFSD for me
(Serving tcp v3 mounts).  Existing mounts on clients hang, as do
new mounts from new clients.  Rebooting the server back to rc7
everything recovers.

The commit cb7470effba9 ("mm/page_alloc: do bulk array bounds check after
checking populated elements") returns the wrong value if the array is
already populated which is interpreted as an allocation failure. Dave
reported this fixes his problem and it also passed a test running dbench
over NFS.

Fixes: cb7470effba9 ("mm/page_alloc: do bulk array bounds check after checking populated elements")
Reported-and-tested-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Cc: <stable@vger.kernel.org> [5.13+]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c