spinlock random exponential backoff
Matthew Dillon
dillon at apollo.backplane.com
Sat May 3 21:03:35 PDT 2008
:Hi,
:
:I have problem under specific test case, if I use spinlock on ifq (got
:many "indefinite wait" logging). With following patch things improve
:greatly, there is almost no "indefinite wait"!. Please review it:
:http://leaf.dragonflybsd.org/~sephe/kern_spinlock.c.diff1
:
:Best Regards,
:sephe
Looks good. We might want to also change that cpu_nop() into a
cpu_pause(), or perhaps even call both.
-Matt
Matthew Dillon
<dillon at backplane.com>
More information about the Submit
mailing list