diff options
| author | Li Nan <[email protected]> | 2023-12-11 15:53:56 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-12-13 08:17:02 -0700 |
| commit | 5fa3d1a00c2d4ba14f1300371ad39d5456e890d7 (patch) | |
| tree | 54ce84d94e4baf81c52ad53cdb129cd08438813c /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 9e4bf6a08d1e127bcc4bd72557f2dfafc6bc7f41 (diff) | |
block: Set memalloc_noio to false on device_add_disk() error path
On the error path of device_add_disk(), device's memalloc_noio flag was
set but not cleared. As the comment of pm_runtime_set_memalloc_noio(),
"The function should be called between device_add() and device_del()".
Clear this flag before device_del() now.
Fixes: 25e823c8c37d ("block/genhd.c: apply pm_runtime_set_memalloc_noio on block devices")
Signed-off-by: Li Nan <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions