linux-nvdimm.lists.01.org archive mirror
 help / color / mirror / Atom feed
* Infinite loop with DAX PMD faults
@ 2016-10-27 19:07 Jan Kara
  2016-10-27 19:46 ` Dan Williams
  2016-10-27 19:54 ` Ross Zwisler
  0 siblings, 2 replies; 11+ messages in thread
From: Jan Kara @ 2016-10-27 19:07 UTC (permalink / raw)
  To: Ross Zwisler; +Cc: linux-fsdevel, linux-nvdimm

Hello,

When testing my DAX patches rebased on top of Ross' DAX PMD series, I've
come across the following issue with generic/344 test from xfstests. The
test ends in an infinite fault loop when we fault index 0 over and over
again never finishing the fault. The problem is that we do a write fault
for index 0 when there is PMD for that index. So we enter wp_huge_pmd().
For whatever reason that returns VM_FAULT_FALLBACK so we continue to
handle_pte_fault(). There we do

	if (pmd_trans_unstable(vmf->pmd) || pmd_devmap(*vmf->pmd))

check which is true - the PMD we have is pmd_trans_huge() - so we 'return
0' and that results in retrying the fault and all happens from the
beginning again.

It isn't quite obvious how to break that cycle to me. The comment before
pmd_none_or_trans_huge_or_clear_bad() goes to great lengths explaining
possible races when PMD is pmd_trans_huge() so it needs careful evaluation
what needs to be done for DAX. Ross, any idea?

								Honza

-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-10-28 15:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-27 19:07 Infinite loop with DAX PMD faults Jan Kara
2016-10-27 19:46 ` Dan Williams
2016-10-27 21:03   ` Ross Zwisler
2016-10-27 21:48     ` Kani, Toshimitsu
2016-10-28  4:13       ` Ross Zwisler
2016-10-28  8:17         ` Jan Kara
2016-10-28 13:51           ` Kani, Toshimitsu
2016-10-28  8:12   ` Jan Kara
2016-10-27 19:54 ` Ross Zwisler
2016-10-28  8:02   ` Jan Kara
2016-10-28 15:35     ` Ross Zwisler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).