]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
filedesc: microoptimize fget_unlocked by retrying obtaining reference count
authormjg <mjg@FreeBSD.org>
Thu, 30 Oct 2014 05:21:12 +0000 (05:21 +0000)
committermjg <mjg@FreeBSD.org>
Thu, 30 Oct 2014 05:21:12 +0000 (05:21 +0000)
commit569cf8ac16dba31f925cd8cda2c15ea8f3df4333
tree138be2c1f48d5e57bba86ff55730cfc4fff99804
parent5bb6a8bca1bb93742c27552b40fa4d271db0beb7
filedesc: microoptimize fget_unlocked by retrying obtaining reference count
without restarting whole lookup

Restart is only needed when fp was closed by current process, which is a much
rarer event than ref/deref by some other thread.
sys/kern/kern_descrip.c