commit | c1a67fefd0546a5552289c65fe31b1d60e64b643 | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kent.overstreet@gmail.com> | Mon May 04 16:52:20 2015 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Mon May 14 13:14:23 2018 -0600 |
tree | e96bfb877d770c45e4b7a58d251edf3808ae5d32 | |
parent | c854ab5773be1c1a0d3cef0c3a3261f2c48ab7f8 [diff] |
mempool: Add mempool_init()/mempool_exit() Allows mempools to be embedded in other structs, getting rid of a pointer indirection from allocation fastpaths. mempool_exit() is safe to call on an uninitialized but zeroed mempool. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>