summaryrefslogtreecommitdiff
path: root/cpusched.c
AgeCommit message (Expand)AuthorFilesLines
2014-06-25xmalloc: Add and use xcallocTobias Klauser1-1/+2
2013-08-11cpusched: Fix compiler warningsTobias Klauser1-3/+3
2013-06-15cpusched: cleanups, refactoring and fix one bugDaniel Borkmann1-49/+28
2013-06-15misc: remove two header commentsDaniel Borkmann1-6/+0
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+180
a2a5e97d17cc4d5c4fe9d724d3273fb6fd2 (diff)
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
-rw-r--r--fs/dax.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/fs/dax.c b/fs/dax.c