On Mon, Mar 13, 2017 at 10:41:11PM +0100, Max Reitz wrote: > preallocate() is and will be called only from places that do not lock > s->lock: Currently that is qcow2_create2(), as of a future patch it will > be called from qcow2_truncate(), too. > > It therefore makes sense to move locking that mutex into preallocate() > itself. > > Signed-off-by: Max Reitz <mre...@redhat.com> > --- > block/qcow2.c | 18 +++++++++++------- > 1 file changed, 11 insertions(+), 7 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature