]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ae9a7ba07f766fb8c4e67150cbd9c7007c51726
treefc9da12ff89fde302f9129d7641197d17c853852
parent065c983a945ec36d73f518306b5ab51ae79f59c7
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: d707733b8f7d ("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