rbd: allocate image requests with a slab allocator
authorAlex Elder <elder@inktank.com>
Wed, 1 May 2013 17:43:03 +0000 (12:43 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 2 May 2013 16:58:29 +0000 (11:58 -0500)
commit1c2a9dfe2107e81b9f0ee90845c687cf7ff84106
treee3d81737000df3bc76ed51b46f2963df7a25f45c
parent30d1cff817808fca9801c743d2de4c61f3f38e15
rbd: allocate image requests with a slab allocator

Create a slab cache to manage rbd_img_request allocation.  Nothing
too fancy at this point--we'll still initialize everything at
allocation time (no constructor)

This is part of:
    http://tracker.ceph.com/issues/3926

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c