linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ext4: Fix ENOSPC handling for DAX faults
@ 2017-12-13  9:13 Jan Kara
       [not found] ` <20171213091352.23448-1-jack-AlSwsSmVLrQ@public.gmane.org>
  2017-12-15 19:36 ` [PATCH 0/2] ext4: Fix ENOSPC handling for DAX faults Ross Zwisler
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Kara @ 2017-12-13  9:13 UTC (permalink / raw)
  To: linux-ext4
  Cc: Ted Tso, Ross Zwisler, Dan Williams, linux-fsdevel, linux-nvdimm,
	Jan Kara

Hello,

these two patches fix handling of ENOSPC during DAX faults. The problem is
that currently running transaction may be holding lots of already freed
blocks which can be reallocated only once the transaction commits. Standard
retry logic in ext4_iomap_end() does not work for DAX page fault handler
since we hold current transaction open in ext4_dax_huge_fault() and thus
retry logic cannot force the running transaction and as a result application
gets SIGBUS due to premature ENOSPC error.

These two patches fix the problem. I'm not too happy about patch 1/2 passing
additional info (error code) from the fault handler but I don't see an
easy better option since we want to also pass back special return values
like VM_FAULT_FALLBACK. Comments are welcome.

								Honza

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

end of thread, other threads:[~2017-12-19 16:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-13  9:13 [PATCH 0/2] ext4: Fix ENOSPC handling for DAX faults Jan Kara
     [not found] ` <20171213091352.23448-1-jack-AlSwsSmVLrQ@public.gmane.org>
2017-12-13  9:13   ` [PATCH 1/2] dax: Pass detailed error code from dax_iomap_fault() Jan Kara
2017-12-13  9:13   ` [PATCH 2/2] ext4: Fix ENOSPC handling in DAX page fault handler Jan Kara
2017-12-15 19:36 ` [PATCH 0/2] ext4: Fix ENOSPC handling for DAX faults Ross Zwisler
2017-12-19 14:30   ` Jan Kara
     [not found]     ` <20171219143051.GA25754-4I4JzKEfoa/jFM9bn6wA6Q@public.gmane.org>
2017-12-19 16:42       ` 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).