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
api-aead.rst -rw-r--r-- 1.0 KB
api-akcipher.rst -rw-r--r-- 789 bytes
api-digest.rst -rw-r--r-- 1.4 KB
api-intro.txt -rw-r--r-- 6.5 KB
api-kpp.rst -rw-r--r-- 1.3 KB
api-rng.rst -rw-r--r-- 446 bytes
api-samples.rst -rw-r--r-- 5.5 KB
api-skcipher.rst -rw-r--r-- 2.6 KB
api.rst -rw-r--r-- 725 bytes
architecture.rst -rw-r--r-- 15.4 KB
asymmetric-keys.txt -rw-r--r-- 15.5 KB
async-tx-api.txt -rw-r--r-- 9.1 KB
conf.py -rw-r--r-- 240 bytes
crypto_engine.rst -rw-r--r-- 1.9 KB
descore-readme.txt -rw-r--r-- 16.8 KB
devel-algos.rst -rw-r--r-- 9.5 KB
index.rst -rw-r--r-- 499 bytes
intro.rst -rw-r--r-- 3.1 KB
userspace-if.rst -rw-r--r-- 14.1 KB

back to top