Re: [Qemu-devel] [PATCH v8 04/16] virtio-blk: Functions for op blocker management

2016-01-27 Thread Fam Zheng
On Wed, 01/27 18:59, Max Reitz wrote: > Put the code for setting up and removing op blockers into an own > function, respectively. Then, we can invoke those functions whenever a > BDS is removed from an virtio-blk BB or inserted into it. > > Signed-off-by: Max Reitz > --- > hw/block/dataplane/vi

[Qemu-devel] [PATCH v8 04/16] virtio-blk: Functions for op blocker management

2016-01-27 Thread Max Reitz
Put the code for setting up and removing op blockers into an own function, respectively. Then, we can invoke those functions whenever a BDS is removed from an virtio-blk BB or inserted into it. Signed-off-by: Max Reitz --- hw/block/dataplane/virtio-blk.c | 77 +++-