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)
commit42065460aed7201ec8adf0179a258a23bd1ebd78
tree037490ed423cfce470971ca5dc38cc36008b91b0
parent57a2f238564e0700c8648238d31f366246a5b963
dm delay: use per-bio data instead of a mempool and slab cache

Starting with commit c0820cf5ad095 ("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