Re: [PATCH v2 2/2] lockable: replaced locks with lock guard macros where appropriate

2020-03-20 Thread Daniel Brodsky
On Fri, Mar 20, 2020 at 5:06 AM Paolo Bonzini wrote: > > On 20/03/20 00:34, dnbrd...@gmail.com wrote: > > index 682abd8e09..89f8a656a4 100644 > > --- a/block/iscsi.c > > +++ b/block/iscsi.c > > @@ -1086,7 +1086,7 @@ static BlockAIOCB *iscsi_aio_ioctl(BlockDriverState > > *bs, > >

Re: [PATCH v2 2/2] lockable: replaced locks with lock guard macros where appropriate

2020-03-20 Thread Paolo Bonzini
On 20/03/20 00:34, dnbrd...@gmail.com wrote: > index 682abd8e09..89f8a656a4 100644 > --- a/block/iscsi.c > +++ b/block/iscsi.c > @@ -1086,7 +1086,7 @@ static BlockAIOCB *iscsi_aio_ioctl(BlockDriverState *bs, > acb->task->expxferlen = acb->ioh->dxfer_len; > > data.size = 0; > -

[PATCH v2 2/2] lockable: replaced locks with lock guard macros where appropriate

2020-03-19 Thread dnbrdsky
From: Daniel Brodsky - ran regexp "qemu_mutex_lock\(.*\).*\n.*if" to find targets - replaced result with QEMU_LOCK_GUARD if all unlocks at function end - replaced result with WITH_QEMU_LOCK_GUARD if unlock not at end Signed-off-by: Daniel Brodsky --- block/iscsi.c | 11 +++---