| commit | b11a76b37a5aa7b07c3e3eeeaae20b25475bddd3 | [log] [tgz] |
|---|---|---|
| author | Qian Cai <[email protected]> | Sat Dec 05 22:14:55 2020 -0800 |
| committer | Linus Torvalds <[email protected]> | Sun Dec 06 10:19:07 2020 -0800 |
| tree | 136f50d4ee06d7b0fd281af91e43d0c6e7c86595 | |
| parent | e91d8d78237de8d7120c320b3645b7100848f24d [diff] |
mm/swapfile: do not sleep with a spin lock held
We can't call kvfree() with a spin lock held, so defer it. Fixes a
might_sleep() runtime warning.
Fixes: 873d7bcfd066 ("mm/swapfile.c: use kvzalloc for swap_info_struct allocation")
Signed-off-by: Qian Cai <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>