aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2023-06-28 09:29:31 +0800
committerSong Liu <[email protected]>2023-07-27 00:13:30 -0700
commite24ed04389f9619e0aaef615a8948633c182a8b0 (patch)
tree375621b2024caaf33dd92a3ded3af55acf1ec7cd /lib/test_fortify/write_overflow-strncpy-src.c
parentb39f35ebe86d88788d85f61e83c81c308cb76727 (diff)
md: restore 'noio_flag' for the last mddev_resume()
memalloc_noio_save() is called for the first mddev_suspend(), and repeated mddev_suspend() only increase 'suspended'. However, memalloc_noio_restore() is also called for the first mddev_resume(), which means that memory reclaim will be enabled before the last mddev_resume() is called, while the array is still suspended. Fix this problem by restore 'noio_flag' for the last mddev_resume(). Fixes: 78f57ef9d50a ("md: use memalloc scope APIs in mddev_suspend()/mddev_resume()") Signed-off-by: Yu Kuai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions