Re: [Qemu-devel] [PATCH v2 3/5] block: Introduce and make use of blk_new_with_root

2016-09-28 Thread Max Reitz
On 27.09.2016 08:37, Fam Zheng wrote: > The idiom of "blk_new() + blk_insert_bs()" is common. Use a new > BB interface that does both things to make the coming transition that > adds AioContext to BB easier. Indeed. It was called blk_new_with_bs() before and I dropped it. :-) (The difference and

[Qemu-devel] [PATCH v2 3/5] block: Introduce and make use of blk_new_with_root

2016-09-26 Thread Fam Zheng
The idiom of "blk_new() + blk_insert_bs()" is common. Use a new BB interface that does both things to make the coming transition that adds AioContext to BB easier. The added blk_new_with_ctx doesn't handle the passed ctx and is purely here to avoid a small code churn. Signed-off-by: Fam Zheng --