aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorVitaly Wool <[email protected]>2017-10-03 16:14:47 -0700
committerLinus Torvalds <[email protected]>2017-10-03 17:54:24 -0700
commitd5567c9df1ef001b2a7e6684b3b3498371ee4cae (patch)
treeb3ce7486314ee88b61cb34f010947c6b40f8548f /tools/perf/scripts/python/call-graph-from-sql.py
parentd9d73e81fe82fdf4ee65a48c26531edc04108349 (diff)
z3fold: fix potential race in z3fold_reclaim_page
It is possible that on a (partially) unsuccessful page reclaim, kref_put() called in z3fold_reclaim_page() does not yield page release, but the page is released shortly afterwards by another thread. Then z3fold_reclaim_page() would try to list_add() that (released) page again which is obviously a bug. To avoid that, spin_lock() has to be taken earlier, before the kref_put() call mentioned earlier. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Vitaly Wool <[email protected]> Cc: Dan Streetman <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions