From: ebiederm+eric@ccr.net (Eric W. Biederman)
To: pnilesh@in.ibm.com
Cc: "Eric W. Biederman" <"ebiederm+eric"@ccr.net>, linux-mm@kvack.org
Subject: Re: preemp / nonpreemp
Date: 18 Apr 2000 10:03:22 -0500 [thread overview]
Message-ID: <m1u2gzih8l.fsf@flinx.biederman.org> (raw)
In-Reply-To: pnilesh@in.ibm.com's message of "Tue, 18 Apr 2000 13:50:20 +0530"
pnilesh@in.ibm.com writes:
> Using the architecture it is also possible
> to prempt kernel threads that don't hold the big kernel lock on
> non-SMP systems as well.
>
> Does it mean that I can go and write schedule () in the kernel and it
> should not create any problems ?/* not in handler */
Right. As a general rule you can never assume any function call
doesn't call schedule in the kernel.
>
> non-SMP premption probably won't appear until
> early 2.5 however as it may have a few complications.
>
> Can you tell me any complication ?
The compilications were in partially balance pairs like:
spin_lock_irqsave....
spin_unlock...
restore_flags....
That the proposed trivial implentations of the locking
primitives might not handle quite correctly.
That's for premption in the kernel not calling schedule.
You can find the details on the lowlatency thread a while
ago on linux-kernel.
Eric
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next parent reply other threads:[~2000-04-18 15:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CA2568C5.002E8BFC.00@d73mta03.au.ibm.com>
2000-04-18 15:03 ` Eric W. Biederman [this message]
2000-04-18 10:49 pnilesh
2000-04-18 11:23 ` Stephen C. Tweedie
-- strict thread matches above, loose matches on Subject: below --
2000-04-18 8:20 pnilesh
2000-04-18 9:22 ` Stephen C. Tweedie
2000-04-18 4:12 pnilesh
2000-04-18 6:40 ` Eric W. Biederman
2000-04-18 9:18 ` Stephen C. Tweedie
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=m1u2gzih8l.fsf@flinx.biederman.org \
--to=ebiederm+eric@ccr.net \
--cc=linux-mm@kvack.org \
--cc=pnilesh@in.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox