On Thu 27-09-18 06:28:43, Matthew Wilcox wrote: > On Thu, Sep 27, 2018 at 01:23:32PM +0200, Jan Kara wrote: > > 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. > > It seems weird that xfstests doesn't provoke this ... The function currently gets called only from mm/memory-failure.c. And yes, we are lacking DAX hwpoison error tests in fstests... Honza -- Jan Kara <jack@xxxxxxxx> SUSE Labs, CR