Richard Henderson <[email protected]> writes:

> Inside qemu_log, we perform qemu_log_trylock/unlock, which need
> not be done if we have already performed the lock beforehand.
>
> Always check the result of qemu_log_trylock -- only checking
> qemu_loglevel_mask races with the acquisition of the lock on
> the logfile.
>
> Signed-off-by: Richard Henderson <[email protected]>

Reviewed-by: Alex Bennée <[email protected]>

-- 
Alex Bennée

Reply via email to