aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2021-10-25 10:54:25 +0800
committerJens Axboe <[email protected]>2021-11-02 14:43:12 -0600
commit5a4b653655d554b5f51a5d2252882708c56a6f7e (patch)
tree1175203370b5c7974bebe1aa55087c12b68363f9 /tools/perf/util/trace-event-scripting.c
parent8c54499a59b026a3dc2afccf6e1b36d5700d2fef (diff)
zram: avoid race between zram_remove and disksize_store
After resetting device in zram_remove(), disksize_store still may come and allocate resources again before deleting gendisk, fix the race by resetting zram after del_gendisk() returns. At that time, disksize_store can't come any more. Reported-by: Luis Chamberlain <[email protected]> Reviewed-by: Luis Chamberlain <[email protected]> Signed-off-by: Ming Lei <[email protected]> Acked-by: Minchan Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions