aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2019-07-04 15:14:49 -0700
committerLinus Torvalds <[email protected]>2019-07-05 11:12:07 +0900
commit8751853091998cd31e9e5f1e8206280155af8921 (patch)
tree91fac9f6aa58ad6ec64d28413fdf2b2322afe096 /tools/perf/scripts/python/export-to-postgresql.py
parenteef778c99c0239ed0a0696ddf22ae3673f28a489 (diff)
swap_readpage(): avoid blk_wake_io_task() if !synchronous
swap_readpage() sets waiter = bio->bi_private even if synchronous = F, this means that the caller can get the spurious wakeup after return. This can be fatal if blk_wake_io_task() does set_current_state(TASK_RUNNING) after the caller does set_special_state(), in the worst case the kernel can crash in do_task_dead(). Link: http://lkml.kernel.org/r/[email protected] Fixes: 0619317ff8baa2d ("block: add polled wakeup task helper") Signed-off-by: Oleg Nesterov <[email protected]> Reported-by: Qian Cai <[email protected]> Acked-by: Hugh Dickins <[email protected]> Reviewed-by: Jens Axboe <[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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions