Implement new stream id allocator and grim reaper for slave corpses
commit249fccae3fb6304ffa1951eec85665efabb4746b
authorTejun Heo <tj@kernel.org>
Tue, 9 Feb 2010 09:29:29 +0000 (9 18:29 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 9 Feb 2010 09:29:29 +0000 (9 18:29 +0900)
tree2b2cca926f1aed9292616c07f52407c7997191ab
parentb5dfb47ddb2a859a82aebf145f7a4ea819fea15e
Implement new stream id allocator and grim reaper for slave corpses

Implement simple bitmap based id allocator which allocates the lowest
available id.  Reaping thread is added so that stream id is freed only
after the slave is completely dead.  This is to prepare for new mmap
implementation.

Note that as id 0 is reserved, this reduces max number of streams by
one.
ossp-util.c
ossp-util.h
osspd.c