diff options
| author | Zhihao Cheng <chengzhihao1@huawei.com> | 2023-08-28 09:38:36 +0300 |
|---|---|---|
| committer | Richard Weinberger <richard@nod.at> | 2023-10-28 23:33:39 +0300 |
| commit | a033ab4fec5fd9194d1b6c0306efbdc75f70b142 (patch) | |
| tree | bf72672f43d669910ad7b88ba5db6722227b7c67 /lib/timerqueue.c | |
| parent | 08a4267874164b2e9c8c50831acd466f47208acc (diff) | |
| download | linux-a033ab4fec5fd9194d1b6c0306efbdc75f70b142.tar.xz | |
ubi: fastmap: Allocate memory with GFP_NOFS in ubi_update_fastmap
Function ubi_update_fastmap could be called in IO context, for example:
ubifs_writepage
do_writepage
ubifs_jnl_write_data
write_head
ubifs_wbuf_write_nolock
ubifs_leb_write
ubi_leb_write
ubi_eba_write_leb
try_write_vid_and_data
ubi_wl_get_peb
ubi_update_fastmap
erase_block
So it's better to allocate memory with GFP_NOFS mode, in case waiting
page writeback(dead loop).
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
