diff options
author | Jan Kara <jack@suse.cz> | 2016-12-14 15:07:47 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-14 16:04:09 -0800 |
commit | a6abc2c0e77b16480f4d2c1eb7925e5287ae1526 (patch) | |
tree | 10bf5b877550bdcb4aac550b4bb9fd14772129fb /arch/mips/pci/ops-vr41xx.c | |
parent | cae1240257d9ba4b40eb240124c530de8ee349bc (diff) | |
download | blackbird-op-linux-a6abc2c0e77b16480f4d2c1eb7925e5287ae1526.tar.gz blackbird-op-linux-a6abc2c0e77b16480f4d2c1eb7925e5287ae1526.zip |
dax: make cache flushing protected by entry lock
Currently, flushing of caches for DAX mappings was ignoring entry lock.
So far this was ok (modulo a bug that a difference in entry lock could
cause cache flushing to be mistakenly skipped) but in the following
patches we will write-protect PTEs on cache flushing and clear dirty
tags. For that we will need more exclusion. So do cache flushing under
an entry lock. This allows us to remove one lock-unlock pair of
mapping->tree_lock as a bonus.
Link: http://lkml.kernel.org/r/1479460644-25076-19-git-send-email-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/pci/ops-vr41xx.c')
0 files changed, 0 insertions, 0 deletions