aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorManjong Lee <[email protected]>2021-12-10 14:47:11 -0800
committerLinus Torvalds <[email protected]>2021-12-10 17:10:56 -0800
commit3c376dfafbf7a8ea0dea212d095ddd83e93280bb (patch)
treea3c585567c6916a1daeb5979174d45eea8818743 /tools/perf/scripts/python/export-to-sqlite.py
parent4178158ef8cadeb0ee86639749ce2b33ad75f770 (diff)
mm: bdi: initialize bdi_min_ratio when bdi is unregistered
Initialize min_ratio if it is set during bdi unregistration. This can prevent problems that may occur a when bdi is removed without resetting min_ratio. For example. 1) insert external sdcard 2) set external sdcard's min_ratio 70 3) remove external sdcard without setting min_ratio 0 4) insert external sdcard 5) set external sdcard's min_ratio 70 << error occur(can't set) Because when an sdcard is removed, the present bdi_min_ratio value will remain. Currently, the only way to reset bdi_min_ratio is to reboot. [[email protected]: tweak comment and coding style] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Manjong Lee <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Cc: Changheun Lee <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: <[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-sqlite.py')
0 files changed, 0 insertions, 0 deletions