[PATCH] Cygwin: flock: Remove the unnecessary fdtab lock
Takashi Yano
takashi.yano@nifty.ne.jp
Fri Jan 9 12:35:53 GMT 2026
On Fri, 9 Jan 2026 11:45:26 +0100
Corinna Vinschen wrote:
> On Jan 8 21:46, Takashi Yano wrote:
> > On Thu, 8 Jan 2026 21:34:40 +0900
> > Takashi Yano wrote:
> > > There were two fdtab locks: one is in inode_t::del_my_locks(), and
>
> I would write that as "There are two more fdtab enumerations using
> fdtab locking, ..."
>
> > > The merely counts the file
> They merely count ...
>
> > > descriptors affected by the corresponding lock, so locking fdtab seems
> > > unnecessary. The latter only only during execve(), when no other
> > ~~~~~~~~~
> > runs only
>
> Patch is ok.
Thanks for reviewing. I'll push the patch modified as suggested to
main branch.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
More information about the Cygwin-patches
mailing list