From: Mike Snitzer <snitzer@redhat.com>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: James.Bottomley@suse.de, hch@lst.de, axboe@kernel.dk,
linux-scsi@vger.kernel.org, dm-devel@redhat.com
Subject: Re: [RFC 1/2] block: implement an unprep function corresponding directly to prep
Date: Wed, 30 Jun 2010 23:47:31 -0400 [thread overview]
Message-ID: <20100701034731.GA9499@redhat.com> (raw)
In-Reply-To: <20100701104653O.fujita.tomonori@lab.ntt.co.jp>
Hi,
On Wed, Jun 30 2010 at 9:47pm -0400,
FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:
> On Wed, 30 Jun 2010 12:01:04 -0500
> James Bottomley <James.Bottomley@suse.de> wrote:
>
> > So this is more directly what I'm thinking. It gives us an exactly
> > correct place to hang the discard allocation in SCSI. The next patch
> > shows a potential implementation in sd.
>
> Yeah, making the prep_rq_fn API symmetrical makes sense lots.
>
>
> > I think it should avoid all the leaks people have been seeing trying to
> > move the discard allocation/free into scsi. I also think it should
> > facilitate sending discard through SCSI as a REQ_TYPE_FS.
>
> I think so. If I can figure out why qemu scsi driver is broken, the
> job is done.
When I combine this patch 1/2 and patch 2/2 with Christoph's discard
payload rework (a1d949f5f448) already staged in for-2.6.36 I'm finding
that: sd_unprep_fn's __free_page causes the system to hard hang/crash.
I need to get serial connected and/or kdump configured to see if I can
catch what is happening.
But if I comment out sd_unprep_fn's __free_page() from James' patch 2/2
I don't see a crash. Seems some other code is altering the request
before James' new sd_unprep_fn hhook?
Are James' patches meant to be dependent on your REQ_TYPE_FS conversion
work? I wouldn't think so.. but I haven't traced the call chains close
enough to know.
> I'll see how this patchset works and update my FS discard patchset on
> the top of this.
I look forward to your results!
Thanks,
Mike
next prev parent reply other threads:[~2010-07-01 3:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-30 17:01 [RFC 1/2] block: implement an unprep function corresponding directly to prep James Bottomley
2010-06-30 17:10 ` [RFC 2/2] sd: free discard page in unprep function James Bottomley
2010-06-30 17:23 ` [RFC 1/2] block: implement an unprep function corresponding directly to prep Mike Snitzer
2010-06-30 17:51 ` Jens Axboe
2010-06-30 17:54 ` Martin K. Petersen
2010-07-01 1:47 ` FUJITA Tomonori
2010-07-01 3:47 ` Mike Snitzer [this message]
2010-07-01 4:44 ` [dm-devel] " FUJITA Tomonori
2010-07-02 11:03 ` Christoph Hellwig
2010-07-05 7:00 ` FUJITA Tomonori
2010-07-05 19:24 ` Christoph Hellwig
2010-07-05 21:50 ` Mark Lord
2010-07-05 21:54 ` Mark Lord
2010-07-05 22:00 ` Jeff Garzik
2010-08-03 3:01 ` Mark Lord
2010-07-06 7:04 ` FUJITA Tomonori
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=20100701034731.GA9499@redhat.com \
--to=snitzer@redhat.com \
--cc=James.Bottomley@suse.de \
--cc=axboe@kernel.dk \
--cc=dm-devel@redhat.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=hch@lst.de \
--cc=linux-scsi@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