[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <480835B5.1090500@bull.net>
Date: Fri, 18 Apr 2008 07:46:29 +0200
From: Nadia Derbey <Nadia.Derbey@...l.net>
To: Nick Andrew <nick@...k-andrew.net>
Cc: linux-kernel@...r.kernel.org,
containers@...ts.linux-foundation.org, orenl@...columbia.edu
Subject: Re: [RFC][PATCH 0/4] Object creation with a specified id
Nick Andrew wrote:
> On Fri, Apr 04, 2008 at 04:51:29PM +0200, Nadia.Derbey@...l.net wrote:
>
>> . echo "LONG XX" > /proc/self/next_id
>> next object to be created will have an id set to XX
>> . echo "LONG<n> X0 ... X<n-1>" > /proc/self/next_id
>> next object to be created will have its ids set to XX0, ... X<n-1>
>> This is particularly useful for processes that may have several ids if
>> they belong to nested namespaces.
>
>
> How do you handle race conditions, i.e. you specify the ID for the
> next object to be created, and then some other thread goes and creates
> an object before your thread creates one?
>
> Nick.
OK, race problem between threads is fixed. Thanks for finding the issue!
The new patch series is coming next.
Regards,
Nadia
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists