diff options
author | Jan Kara <jack@suse.cz> | 2016-12-13 05:34:12 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-12-13 05:34:12 +0300 |
commit | 0cb80b4847553582830a59da2c022c37a1f4a119 (patch) | |
tree | e16efd7948740c035aef5fad3af596089e6e03da /fs/ufs | |
parent | 73b92a2a5e97d17cc4d5c4fe9d724d3273fb6fd2 (diff) | |
download | linux-0cb80b4847553582830a59da2c022c37a1f4a119.tar.xz |
dax: Fix sleep in atomic contex in grab_mapping_entry()
Commit 642261ac995e: "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: 642261ac995e01d7837db1f4b90181496f7e6835
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ufs')
0 files changed, 0 insertions, 0 deletions