]> git.baikalelectronics.ru Git - kernel.git/commit
dm delay: use per-bio data instead of a mempool and slab cache
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 15 Nov 2013 21:12:51 +0000 (16:12 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 7 Jan 2014 15:11:45 +0000 (10:11 -0500)
commit1c6e24a6254ee60fea97944eddda855e3d56cbd8
tree037490ed423cfce470971ca5dc38cc36008b91b0
parent8d28ea53a6c91c4e0d9bc2816c30cf5a9a4a63de
dm delay: use per-bio data instead of a mempool and slab cache

Starting with commit 6a08d9eb07db7 ("dm: introduce per_bio_data"),
device mapper has the capability to pre-allocate a target-specific
structure with the bio.

This patch changes dm-delay to use this facility instead of a slab cache
and mempool.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-delay.c