On 08 Apr 2015, at 15:03, Ted Unangst <t...@tedunangst.com> wrote: > The atomic functions are quite expensive on > some architectures, so we don't want to just use them everywhere. So, rwlock is better here?
Also, can you explain this lines from finishdup() function (openbsd-5., file kern/kern_descrip.c, lines 576-577): fp->f_count++; FRELE(fp, p); it looks useless, or I misunderstood something?