block: add bioset_init_from_src() helper
authorJens Axboe <axboe@kernel.dk>
Thu, 7 Jun 2018 20:42:05 +0000 (14:42 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Jun 2018 13:03:35 +0000 (07:03 -0600)
commit28e89fd914a22e8a64f05ae2f0048b06165f371b
treec94dfa5cf876cb8063b6f430ced9030c35a8c59b
parentc04fa44b76b8d9d4f6b577030aa0cbb20359c428
block: add bioset_init_from_src() helper

Add a helper that allows a caller to initialize a new bio_set,
using the settings from an existing bio_set.

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>
block/bio.c
include/linux/bio.h