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

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

 



On Mon, Sep 7, 2009 at 22:13, Florian Zumbiehl <florz@xxxxxxxx> wrote:
>> >> I'm still concerned/interested about the effect on performance. But
>> >
>> > I guess that somebody should try it out ;-)
>>
>> I'm pretty sure we should not introduce any sort of global
>> serialization locks here. We have to handle thousands events in
>> parallel on some boxes, and most of them don't need any of theses
>> locks.
>>
>> Why can't we just create the subdir and the link or node inside one
>> and the same retry-loop? The link or node will pin the subdir and any
>
> that certainly is _possible_ - it just seems to be pretty difficult
> to do, at least for me. The syscall for creating the object is not
> necessarily the immediate next thing after the call to
> util_create_path(), ...

I guess we could do some:

  ensure_path(/dev/foo/bar) {
    selinux_something(...)
    mknod(/dev/foo/bar, ...);
    selinux_someting(...);
  }

macro hackery to wrap a bunch of instructions in a retry loop?

Kay
--
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