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
History
File Mode Size
BUGS-parport -rw-r--r-- 319 bytes
Kconfig -rw-r--r-- 5.4 KB
Makefile -rw-r--r-- 693 bytes
TODO-parport -rw-r--r-- 594 bytes
daisy.c -rw-r--r-- 12.3 KB
ieee1284.c -rw-r--r-- 22.6 KB
ieee1284_ops.c -rw-r--r-- 23.2 KB
multiface.h -rw-r--r-- 387 bytes
parport_amiga.c -rw-r--r-- 6.3 KB
parport_atari.c -rw-r--r-- 5.4 KB
parport_ax88796.c -rw-r--r-- 9.3 KB
parport_cs.c -rw-r--r-- 5.5 KB
parport_gsc.c -rw-r--r-- 11.0 KB
parport_gsc.h -rw-r--r-- 6.1 KB
parport_ip32.c -rw-r--r-- 67.0 KB
parport_mfc3.c -rw-r--r-- 9.9 KB
parport_pc.c -rw-r--r-- 85.4 KB
parport_serial.c -rw-r--r-- 20.1 KB
parport_sunbpp.c -rw-r--r-- 9.3 KB
probe.c -rw-r--r-- 7.4 KB
procfs.c -rw-r--r-- 12.6 KB
share.c -rw-r--r-- 36.7 KB

back to top