summaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorJan Kara2019-02-01 23:20:27 +0100
committerLinus Torvalds2019-02-02 00:46:23 +0100
commit80409c65e2c6cd1540045ee01fc55e50d95e0983 (patch)
treee186635a86a9658b3d72b5adfad1f36240c3e654 /mm/oom_kill.c
parentkernel/exit.c: release ptraced tasks before zap_pid_ns_processes (diff)
downloadkernel-qcow2-linux-80409c65e2c6cd1540045ee01fc55e50d95e0983.tar.gz
kernel-qcow2-linux-80409c65e2c6cd1540045ee01fc55e50d95e0983.tar.xz
kernel-qcow2-linux-80409c65e2c6cd1540045ee01fc55e50d95e0983.zip
mm: migrate: make buffer_migrate_page_norefs() actually succeed
Currently, buffer_migrate_page_norefs() was constantly failing because buffer_migrate_lock_buffers() grabbed reference on each buffer. In fact, there's no reason for buffer_migrate_lock_buffers() to grab any buffer references as the page is locked during all our operation and thus nobody can reclaim buffers from the page. So remove grabbing of buffer references which also makes buffer_migrate_page_norefs() succeed. Link: http://lkml.kernel.org/r/20190116131217.7226-1-jack@suse.cz Fixes: 89cb0888ca14 "mm: migrate: provide buffer_migrate_page_norefs()" Signed-off-by: Jan Kara <jack@suse.cz> Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: David Rientjes <rientjes@google.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Zi Yan <zi.yan@cs.rutgers.edu> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions