From: george anzinger <george@mvista.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Jason Wohlgemuth <jwohlgem@mindspring.com>, linux-kernel@vger.kernel.org
Subject: Re: lock_kernel() / unlock_kernel inconsistency Don't do this!
Date: Fri, 15 Dec 2000 16:48:45 -0800 [thread overview]
Message-ID: <3A3ABBED.6D727B0@mvista.com> (raw)
In-Reply-To: <E1475MO-00026g-00@the-village.bc.nu>
Alan Cox wrote:
>
> > Both of these methods have problems, especially with the proposed
> > preemptions changes. The first case causes the thread to run with the
> > BKL for the whole time. This means that any other task that wants the
> > BKL will be blocked. Surly the needed protections don't require this.
>
> The BKL is dropped on rescheduling of that task. Its an enforcement of the
> old unix guarantees against other code making the same assumptions. Its also
> the standard 2.4 locking for several things still
>
Yes, I am aware of the drop on schedule, but a preemptive schedule call
should (can not) do this. Result, no preemption, i.e. the thread does
not let anyone else in. Some how I don't think a long term hold, such
as this is needed. Of course, if the code blocks (i.e. calls
schedule()) often... but then we find folks using such code a pattern
and learning tool. Remember this thread was started by just such a
study.
George
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
prev parent reply other threads:[~2000-12-16 1:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-14 21:51 lock_kernel() / unlock_kernel inconsistency Jason Wohlgemuth
2000-12-16 0:19 ` lock_kernel() / unlock_kernel inconsistency Don't do this! george anzinger
2000-12-16 0:37 ` Alan Cox
2000-12-16 0:48 ` george anzinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A3ABBED.6D727B0@mvista.com \
--to=george@mvista.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jwohlgem@mindspring.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.