diff options
author | Matthew Wilcox <willy@linux.intel.com> | 2015-09-08 23:59:22 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-09 00:35:28 +0200 |
commit | 01a33b4ace68bc35679a347f21d5ed6e222e30dc (patch) | |
tree | f65f2883e5c1f46691eea046e5986a28558cb687 /mm/memory.c | |
parent | ext4: add ext4_get_block_dax() (diff) | |
download | linux-01a33b4ace68bc35679a347f21d5ed6e222e30dc.tar.xz linux-01a33b4ace68bc35679a347f21d5ed6e222e30dc.zip |
ext4: start transaction before calling into DAX
Jan Kara pointed out that in the case where we are writing to a hole, we
can end up with a lock inversion between the page lock and the journal
lock. We can avoid this by starting the transaction in ext4 before
calling into DAX. The journal lock nests inside the superblock
pagefault lock, so we have to duplicate that code from dax_fault, like
XFS does.
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions