dm: Use kzalloc for all structs with embedded biosets/mempools
mempool_init()/bioset_init() require that the mempools/biosets be zeroed first; they probably should not _require_ this, but not allocating those structs with kzalloc is a fairly nonsensical thing to do (calling mempool_exit()/bioset_exit() on an uninitialized mempool/bioset is legal and safe, but only works if said memory was zeroed.) Acked-by:Mike Snitzer <snitzer@redhat.com> Signed-off-by:
Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- drivers/md/dm-bio-prison-v1.c 1 addition, 1 deletiondrivers/md/dm-bio-prison-v1.c
- drivers/md/dm-bio-prison-v2.c 1 addition, 1 deletiondrivers/md/dm-bio-prison-v2.c
- drivers/md/dm-io.c 1 addition, 1 deletiondrivers/md/dm-io.c
- drivers/md/dm-kcopyd.c 1 addition, 1 deletiondrivers/md/dm-kcopyd.c
- drivers/md/dm-region-hash.c 1 addition, 1 deletiondrivers/md/dm-region-hash.c
- drivers/md/dm-snap.c 1 addition, 1 deletiondrivers/md/dm-snap.c
- drivers/md/dm-thin.c 1 addition, 1 deletiondrivers/md/dm-thin.c
Loading
Please register or sign in to comment