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

Jens Axboe
2010-06-30T17:51:15Z

On 30/06/10 19.01, James Bottomley 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.

This is so much better than the other hacks, thanks for doing this.

--
Jens Axboe