Still seems way over engineered, just use an atomic_long_t for a continually increasing index number. -- Jens Axboe