summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_proc.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2010-07-01 10:49:18 (GMT)
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 16:23:49 (GMT)
commitf1126e950d28ff875d96ed6a04a9ff96c7bfc357 (patch)
tree4d7217b91a658c1c8fa31325f39b102377765f21 /drivers/scsi/scsi_proc.c
parent28018c242a4ec7017bbbf81d2d3952f820a27118 (diff)
downloadlinux-fsl-qoriq-f1126e950d28ff875d96ed6a04a9ff96c7bfc357.tar.xz
scsi: add sd_unprep_fn to free discard page
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>
Diffstat (limited to 'drivers/scsi/scsi_proc.c')
0 files changed, 0 insertions, 0 deletions