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

Martin K. Petersen
2010-06-30T17:56:49Z

>>>>> "Jens" == Jens Axboe <axboe@kernel.dk> writes:

Jens> 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.

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

Agreed!

--
Martin K. Petersen Oracle Linux Engineering