From: Kent Overstreet Date: Fri, 7 Sep 2012 20:44:01 +0000 (-0700) Subject: dm: Use bioset's front_pad for dm_rq_clone_bio_info X-Git-Tag: v3.7-rc1~54^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94818742316e27d01506240cf8b07d69844d31af;p=pandora-kernel.git dm: Use bioset's front_pad for dm_rq_clone_bio_info Previously, dm_rq_clone_bio_info needed to be freed by the bio's destructor to avoid a memory leak in the blk_rq_prep_clone() error path. This gets rid of a memory allocation and means we can kill dm_rq_bio_destructor. The _rq_bio_info_cache kmem cache is unused now and needs to be deleted, but due to the way io_pool is used and overloaded this looks not quite trivial so I'm leaving it for a later patch. v6: Fix comment on struct dm_rq_clone_bio_info, per Tejun Signed-off-by: Kent Overstreet CC: Alasdair Kergon Acked-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed