Re: [RFC 1/2] block: implement an unprep function corresponding directly to prep

Mike Snitzer
2010-06-30T17:23:24Z

On Wed, Jun 30 2010 at 1:01pm -0400,
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.
>
> 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.

Thanks james!

I'll look to take this template and layer in Christoph's approach to
pushing the page allocation down into SCSI.

I'll also look at Tomo's REQ_TYPE_FS changes for discard.

I'll report back as soon as I have something.

Mike