Re: Bug about sched_4bsd?

From: Attilio Rao <attilio_at_freebsd.org>
Date: Mon, 18 Jan 2010 03:58:41 +0100
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
Received on Mon Jan 18 2010 - 01:58:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC