Skip to content
Commit 2a2a4c51 authored by Jens Axboe's avatar Jens Axboe
Browse files

dm: use bioset_init_from_src() to copy bio_set



We can't just copy and clear a bio_set, use the bio helper to
setup a new bio_set with the settings from another one.

Fixes: 6f1c819c ("dm: convert to bioset_init()/mempool_init()")
Reported-by: default avatarVenkat R.B <vrbagal1@linux.vnet.ibm.com>
Tested-by: default avatarVenkat R.B <vrbagal1@linux.vnet.ibm.com>
Tested-by: default avatarLi Wang <liwang@redhat.com>
Reviewed-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 28e89fd9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment