[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-1366-gbdc7bdb

simo idra at samba.org
Thu Sep 3 09:31:19 MDT 2009


On Thu, 2009-09-03 at 09:49 -0500, Jeremy Allison wrote:
> If the open is chained onto the close, and
>     the fd on the new open is the same as the old closed fd, then it's
>     possible this race will occur. However, all that will happen is
> that
>     we'll lose the oplock on this file. A shame, but not a fatal
> event.

Can't you prevent this by coupling the fd information with some other
information unique to the connection (not sure vuid is never reclied,
but some unique connection identifier would do) so that even if the fd
is they same you can still realize it is not the one you are looking
for ?

Or would this complicate the code so mush the benefit is not worth the
effort ?

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>



More information about the samba-technical mailing list