Bug about sched_4bsd?

Attilio Rao attilio at freebsd.org
Mon Jan 18 02:58:43 UTC 2010


2010/1/17 Kohji Okuno <okuno.kohji at jp.panasonic.com>:
> Hello,
>
> Could you check sched_4bsd.patch, please?

I think, instead, that what needs to happen is to have sched_switch()
to do a lock handover from sleepq/turnstile spinlock to schedlock.
That way, if threads are willing to contest on td_lock they will be
still inhibited.
I'm not sure if this patch breaks any invariant, if you may test I
would appreciate:
http://www.freebsd.org/~attilio/sched_4bsd_schedlock.diff

Reviews and comments are appreciated.
BTW, nice catch.

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein


More information about the freebsd-current mailing list