mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
dax: Fix sleep in atomic contex in grab_mapping_entry()
Commit642261ac99: "dax: add struct iomap based DAX PMD support" has introduced unmapping of page tables if huge page needs to be split in grab_mapping_entry(). However the unmapping happens after radix_tree_preload() call which disables preemption and thus unmap_mapping_range() tries to acquire i_mmap_lock in atomic context which is a bug. Fix the problem by moving unmapping before radix_tree_preload() call. Fixes:642261ac99Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
73b92a2a5e
commit
0cb80b4847
1 changed files with 7 additions and 8 deletions
15
fs/dax.c
15
fs/dax.c
Loading…
Add table
Add a link
Reference in a new issue