qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v9 05/21] job.c: add job_lock/unlock while keeping job.h inta


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [PATCH v9 05/21] job.c: add job_lock/unlock while keeping job.h intact
Date: Mon, 11 Jul 2022 13:40:47 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 7/11/22 10:30, Emanuele Giuseppe Esposito wrote:


Am 08/07/2022 um 21:25 schrieb Vladimir Sementsov-Ogievskiy:
   static bool job_started(Job *job)

So we can call it both with mutex locked and without. Hope it never race
with job_start.

Where exactly do you see it called with mutex not held?

I don't see it anywhere, and if you agree too, we should rename it in
_locked.


Oh, right, I agree.

--
Best regards,
Vladimir



reply via email to

[Prev in Thread] Current Thread [Next in Thread]