Revision f52afc93cd018fe6910133a05d44671192d1aeb0 authored by Jan Kara on 27 September 2018, 11:23:32 UTC, committed by Dan Williams on 27 September 2018, 17:56:15 UTC
When dax_lock_mapping_entry() has to sleep to obtain entry lock, it will
fail to unlock mapping->i_pages spinlock and thus immediately deadlock
against itself when retrying to grab the entry lock again. Fix the
problem by unlocking mapping->i_pages before retrying.

Fixes: c2a7d2a11552 ("filesystem-dax: Introduce dax_lock_mapping_entry()")
Reported-by: Barret Rhoden <brho@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 6bf4ca7
History
File Mode Size
00-INDEX -rw-r--r-- 489 bytes
butterfly -rw-r--r-- 2.9 KB
pxa2xx -rw-r--r-- 8.2 KB
spi-lm70llp -rw-r--r-- 3.1 KB
spi-sc18is602 -rw-r--r-- 1.3 KB
spi-summary -rw-r--r-- 25.8 KB
spidev -rw-r--r-- 6.8 KB

back to top