git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28018c2
)
scsi: add sd_unprep_fn to free discard page
author
FUJITA Tomonori
<fujita.tomonori@lab.ntt.co.jp>
Thu, 1 Jul 2010 10:49:18 +0000
(19:49 +0900)
committer
Jens Axboe
<jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:23:49 +0000
(18:23 +0200)
This fixes discard page leak by using q->unprep_rq_fn facility.
q->unprep_rq_fn is called when all the data buffer (req->bio and
scsi_data_buffer) in the request is freed.
sd_unprep() uses rq->buffer to free discard page allocated in
sd_prepare_discard().
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
No differences found