From: Brian Foster <bfoster@redhat.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: "Darrick J. Wong" <darrick.wong@oracle.com>,
xfs <linux-xfs@vger.kernel.org>
Subject: Re: [RFC PATCH] xfs: try to avoid blowing out the transaction reservation when bunmaping a shared extent
Date: Thu, 4 May 2017 09:40:14 -0400 [thread overview]
Message-ID: <20170504134013.GE3248@bfoster.bfoster> (raw)
In-Reply-To: <20170504115943.GC22052@infradead.org>
On Thu, May 04, 2017 at 04:59:43AM -0700, Christoph Hellwig wrote:
> On Tue, May 02, 2017 at 08:05:25AM -0400, Brian Foster wrote:
> > But doesn't that mean this wouldn't be a new problem introduced by such
> > a change?
>
> It would make the existing problem at lot easier to hit I think.
>
I don't really see how. As it is, we currently do something like unmap
extent 1, unmap extent 2, roll transaction, free extent 1, free extent 2
(where the extent frees lock the agf). As I understand it, the
prospective change would move the agf locking up into the unmap
transaction and hold it across the roll.
I suppose you could make the case that the AGFs are held locked for a
longer period of time, but it's hard to characterize whether that would
make a deadlock more likely or not. Even if it did, couldn't we either
just fix the unmap count to one extent (unconditionally or in just the
reflink case) or until we hit an extent that is in decreasing ag
order from one that has already been unmapped in the current tp..?
> > transaction. That being said, I'm not following your thought wrt to this
> > particular situation. Are you suggesting that we not defer the reflink
> > adjustment in particular unmap cases, or that we just limit the number
> > of extent unmaps per-tp based on crossing an AG boundary, or something
> > else entirely?
>
> To me it seems like we should try to do the extent count adjustments
> in the current transaction for a given extent if we can, but give me
> a little more time to think how to best do that. I'm travelling at the
> moment and don't have much quiet time to actually engage my brain.
Sure, that sounds potentially interesting.
Brian
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-05-04 13:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-25 2:09 [RFC PATCH] xfs: try to avoid blowing out the transaction reservation when bunmaping a shared extent Darrick J. Wong
2017-04-26 13:59 ` Brian Foster
2017-04-26 21:37 ` Darrick J. Wong
2017-04-27 7:35 ` Christoph Hellwig
2017-04-28 19:40 ` Darrick J. Wong
2017-05-01 14:58 ` Brian Foster
2017-05-02 8:00 ` Christoph Hellwig
2017-05-02 12:05 ` Brian Foster
2017-05-04 11:59 ` Christoph Hellwig
2017-05-04 13:40 ` Brian Foster [this message]
2017-04-27 7:40 ` Christoph Hellwig
2017-04-27 15:58 ` Darrick J. Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170504134013.GE3248@bfoster.bfoster \
--to=bfoster@redhat.com \
--cc=darrick.wong@oracle.com \
--cc=hch@infradead.org \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox