rbd: allocate object 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:30 +0000 (11:58 -0500)
commit868311b1ebc9b203bae0d6d1f012ea5cbdadca03
tree972ef543d655be8729ced0e85641fa2f2660dd33
parentf907ad55967fec6bc6ec5ee84021070c49cf0bb1
rbd: allocate object requests with a slab allocator

Create a slab cache to manage rbd_obj_request allocation.  We aren't
using a constructor, and we'll zero-fill object request structures
when they're allocated.

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