Re: [PATCH] race between util_create_path() and util_delete_path()?

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

 



Hi,

> On Mon, Sep 7, 2009 at 22:23, Florian Zumbiehl <florz@xxxxxxxx> wrote:
> >> until we successfully create the dir and the node or link, but in real
> >> world setups it seems it just does not happen. That way we don't put
> >
> > How do you know that?
> 
> Competing events for the same subdir but different devices are pretty
> rare. And it's very unlikely that shared directories ever get empty,
> most of them have always some device which stays around and pins the

It seems unlikely per call to those functions, sure. But given the
number of installations, and the number of calls per installation ...

> subdir. And there is no such known problem ever reported.

Now, how likely is it that when this happens once in a setup and it's
not reproducible, it would get reported?

As an argument for a retry loop instead of locking, that seems fine -
but to conclude from that that it seems not to happen in real world
setups, I think, is not appropriate.

Florian
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux