public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Running out of reserved data blocks
@ 2008-09-26  5:31 Lachlan McIlroy
  2008-09-26  7:08 ` Dave Chinner
  0 siblings, 1 reply; 7+ messages in thread
From: Lachlan McIlroy @ 2008-09-26  5:31 UTC (permalink / raw)
  To: xfs-dev, xfs-oss

A while back I posted a patch to re-dirty pages on I/O error to handle errors from
xfs_trans_reserve() that was failing with ENOSPC when trying to convert delayed
allocations.  I'm now seeing xfs_trans_reserve() fail when converting unwritten
extents and in that case we silently ignore the error and leave the extent as
unwritten which effectively causes data corruption.  I can also get failures when
trying to unreserve disk space.

I've tried increasing the size of the reserved data blocks pool but that only
delays the inevitable.  Increasing the size to 65536 blocks seems to avoid failures
but that's getting to be a lot of disk space.

All of these ENOSPC errors should be transient and if we retried the operation - or
waited for the reserved pool to refill - we could proceed with the transaction.  I
was thinking about adding a retry loop in xfs_trans_reserve() so if XFS_TRANS_RESERVE
is set and we fail to get space we just keep trying.  It's not very elegant but saves
having to address the ENOSPC failure in many code paths.

Does anyone have any other suggestions?


Lachlan

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

end of thread, other threads:[~2008-09-29  8:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-26  5:31 Running out of reserved data blocks Lachlan McIlroy
2008-09-26  7:08 ` Dave Chinner
2008-09-26  7:45   ` Lachlan McIlroy
2008-09-26  8:48     ` Dave Chinner
2008-09-29  2:44       ` Lachlan McIlroy
2008-09-29  6:51         ` Dave Chinner
2008-09-29  8:40           ` Lachlan McIlroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox