From: Joe Thornber <thornber@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, dm-devel@redhat.com,
Mike Snitzer <snitzer@redhat.com>
Subject: Re: [PATCH 2/5] block: make bio_inc_remaining() interface accessible again
Date: Fri, 6 May 2016 17:46:56 +0100 [thread overview]
Message-ID: <20160506164655.GC19687@rh-vpn> (raw)
In-Reply-To: <20160506162705.GA7999@lst.de>
On Fri, May 06, 2016 at 06:27:05PM +0200, Christoph Hellwig wrote:
> On Fri, May 06, 2016 at 12:19:16PM -0400, Mike Snitzer wrote:
> > (this is a direct result of completing the discard bio before all
> > mappings, and associated sub-discards, have):
>
> The completion order really should not matter, we rely on it not
> mattering for almost every usage of the bio_chain API. So there
> is something else fishy going on here. What's your test case?
> I'd like to dig a bit deeper into this.
Completion order isn't important. The issue we have is there are two
levels of fragmentation that we see with thinp.
First a large discard (eg, mkfs) comes in. We then break this up into
mapped regions. Then each region is quiesced individually. Once
quiesced we then can discard the region, with the extra twist that we
can't discard any areas that are shared between snapshots. The
patches Mike posted switch to use your new bio_chain/blk_issue_thing
(which I like btw) on the bottom level (ie, each region). So we need
some form of ref counting to work out when all the mid level regions
are complete and hence we can complete the original bio.
It's not rocket science, and is generating far more discussion than is
neccessary. If I can't piggy back on the bio's ref count, I'll create
my own.
- Joe
next prev parent reply other threads:[~2016-05-06 16:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-05 15:54 [PATCH 0/5] dm thin: adapt code to use new async __blkdev_issue_discard Mike Snitzer
2016-05-05 15:54 ` [PATCH v2 1/5] block: reinstate early return of -EOPNOTSUPP from blkdev_issue_discard Mike Snitzer
2016-05-06 16:04 ` Christoph Hellwig
2016-05-05 15:54 ` [PATCH 2/5] block: make bio_inc_remaining() interface accessible again Mike Snitzer
2016-05-06 15:25 ` Christoph Hellwig
2016-05-06 15:56 ` Christoph Hellwig
2016-05-06 16:19 ` Mike Snitzer
2016-05-06 16:27 ` Christoph Hellwig
2016-05-06 16:46 ` Joe Thornber [this message]
2016-05-06 16:30 ` Joe Thornber
2016-05-06 16:43 ` Christoph Hellwig
2016-05-06 15:57 ` Mike Snitzer
2016-05-05 15:54 ` [PATCH 3/5] dm thin: remove __bio_inc_remaining() and switch to using bio_inc_remaining() Mike Snitzer
2016-05-05 15:54 ` [PATCH 4/5] dm thin: use __blkdev_issue_discard for async discard support Mike Snitzer
2016-05-06 16:05 ` Christoph Hellwig
2016-05-05 15:54 ` [PATCH 5/5] dm thin: unroll issue_discard() to create longer discard bio chains Mike Snitzer
2016-05-06 16:12 ` Christoph Hellwig
2016-05-06 16:36 ` Joe Thornber
2016-05-06 16:44 ` Christoph Hellwig
2016-05-06 16:48 ` Joe Thornber
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=20160506164655.GC19687@rh-vpn \
--to=thornber@redhat.com \
--cc=axboe@kernel.dk \
--cc=dm-devel@redhat.com \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=snitzer@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.