[PATCH 1/3] posix timers: Allocate timer id per process (v2)

2013-03-11 Thread Pavel Emelyanov
Currently kernel generates IDs for posix timers in a global manner -- there's a kernel-wide IDR tree from which IDs are created. This makes it impossible to recreate a timer with a desired ID (in particulat this is done by the CRIU checkpoint-restore project) -- since these IDs are global it may ha

Re: [PATCH 1/3] posix timers: Allocate timer id per process (v2)

2013-03-08 Thread Thomas Gleixner
Pavel, On Thu, 21 Feb 2013, Pavel Emelyanov wrote: > Patch replaces global idr with global hash table for posix timers and > makes timer ids unique not globally, but per process. Next free timer id is > type of integer and stored on signal struct (posix_timer_id). If free timer > id reaches negat

[PATCH 1/3] posix timers: Allocate timer id per process (v2)

2013-02-21 Thread Pavel Emelyanov
Patch replaces global idr with global hash table for posix timers and makes timer ids unique not globally, but per process. Next free timer id is type of integer and stored on signal struct (posix_timer_id). If free timer id reaches negative value on timer creation, it will be dropped to zero and -

Re: [PATCH 1/3] posix timers: Allocate timer id per process

2013-02-14 Thread Pavel Emelyanov
On 02/15/2013 12:13 AM, Sasha Levin wrote: > On Thu, Feb 14, 2013 at 11:19 AM, Pavel Emelyanov wrote: >> From: Stanislav Kinsbursky >> >> Patch replaces global idr with global hash table for posix timers and >> makes timer ids unique not globally, but per process. Next free timer id is >> type of

Re: [PATCH 1/3] posix timers: Allocate timer id per process

2013-02-14 Thread Sasha Levin
On Thu, Feb 14, 2013 at 11:19 AM, Pavel Emelyanov wrote: > From: Stanislav Kinsbursky > > Patch replaces global idr with global hash table for posix timers and > makes timer ids unique not globally, but per process. Next free timer id is > type of integer and stored on signal struct (posix_timer_

[PATCH 1/3] posix timers: Allocate timer id per process

2013-02-14 Thread Pavel Emelyanov
From: Stanislav Kinsbursky Patch replaces global idr with global hash table for posix timers and makes timer ids unique not globally, but per process. Next free timer id is type of integer and stored on signal struct (posix_timer_id). If free timer id reaches negative value on timer creation, it