dm: use bioset_init_from_src() to copy bio_set
authorJens Axboe <axboe@kernel.dk>
Thu, 7 Jun 2018 20:42:06 +0000 (14:42 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Jun 2018 13:06:29 +0000 (07:06 -0600)
commit2a2a4c510b761e800098992cac61281c86527e5d
treefc9da12ff89fde302f9129d7641197d17c853852
parent28e89fd914a22e8a64f05ae2f0048b06165f371b
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: 6f1c819c219f ("dm: convert to bioset_init()/mempool_init()")
Reported-by: Venkat R.B <vrbagal1@linux.vnet.ibm.com>
Tested-by: Venkat R.B <vrbagal1@linux.vnet.ibm.com>
Tested-by: Li Wang <liwang@redhat.com>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm.c