Revision 9f141d6ef6258a3a37a045842d9ba7e68f368956 authored by Jan Kara on 19 October 2016, 12:34:31 UTC, committed by Dan Williams on 27 December 2016, 04:29:25 UTC
Currently ->iomap_begin() handler is called with entry lock held. If the filesystem held any locks between ->iomap_begin() and ->iomap_end() (such as ext4 which will want to hold transaction open), this would cause lock inversion with the iomap_apply() from standard IO path which first calls ->iomap_begin() and only then calls ->actor() callback which grabs entry locks for DAX (if it faults when copying from/to user provided buffers). Fix the problem by nesting grabbing of entry lock inside ->iomap_begin() - ->iomap_end() pair. Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent f449b93
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 192 bytes |
sym53c8xx.h | -rw-r--r-- | 5.9 KB |
sym_defs.h | -rw-r--r-- | 26.5 KB |
sym_fw.c | -rw-r--r-- | 13.0 KB |
sym_fw.h | -rw-r--r-- | 6.5 KB |
sym_fw1.h | -rw-r--r-- | 44.2 KB |
sym_fw2.h | -rw-r--r-- | 47.9 KB |
sym_glue.c | -rw-r--r-- | 52.7 KB |
sym_glue.h | -rw-r--r-- | 7.2 KB |
sym_hipd.c | -rw-r--r-- | 144.0 KB |
sym_hipd.h | -rw-r--r-- | 33.5 KB |
sym_malloc.c | -rw-r--r-- | 8.6 KB |
sym_misc.h | -rw-r--r-- | 5.0 KB |
sym_nvram.c | -rw-r--r-- | 19.8 KB |
sym_nvram.h | -rw-r--r-- | 6.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...