From: Andrew Morton <akpm@digeo.com>
To: Christoph Hellwig <hch@lst.de>
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] more deprectation bits
Date: Sun, 29 Dec 2002 13:55:48 -0800 [thread overview]
Message-ID: <3E0F6F64.DDE742A3@digeo.com> (raw)
In-Reply-To: 20021229224713.A12011@lst.de
Christoph Hellwig wrote:
>
> On Sun, Dec 29, 2002 at 01:38:51PM -0800, Andrew Morton wrote:
> > Christoph Hellwig wrote:
> > >
> > > Rename the deprecated attribute to __deprecated to make it obvious
> > > this is something special and to avoid namespace clashes.
> > >
> > > Mark more functionality deprecated:
> > >
> > > - sleep_on & friends
> >
> > Please do not make sleep_on() generate a warning. Unless you intend
> > to do the same to lock_kernel().
> >
> > ext3 uses sleep_on(). It is perfectly safe.
>
> Even if it's safe in that particular case, most code in the kernel runs
> without BKL. This patch just makes the deprication of sleep_on
> explicit.
This would be more appropriate:
--- 25/kernel/sched.c~a Sun Dec 29 13:53:24 2002
+++ 25-akpm/kernel/sched.c Sun Dec 29 13:54:27 2002
@@ -1264,7 +1264,14 @@ long interruptible_sleep_on_timeout(wait
void sleep_on(wait_queue_head_t *q)
{
+ static int count;
+
SLEEP_ON_VAR
+
+ if (count < 10 && !kernel_locked()) {
+ count++;
+ WARN_ON(1);
+ }
current->state = TASK_UNINTERRUPTIBLE;
> > Weaning ext3 off lock_kernel()
> > is a large, delicate and thus-far undesigned body of work. I've been
> > working on other stuff and it is quite unlikely that ext3 locking will
> > be redesigned in the 2.5 timeframe.
>
> Then ext3 has to live with using depricated interfaces during 2.6,
> what's the point?
We shouldn't generate tons of bogus warnings for something which
everyone knows about anyway.
next prev parent reply other threads:[~2002-12-29 21:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-29 20:55 [PATCH] more deprectation bits Christoph Hellwig
2002-12-29 21:38 ` Andrew Morton
2002-12-29 21:47 ` Christoph Hellwig
2002-12-29 21:55 ` Andrew Morton [this message]
2002-12-29 21:58 ` Christoph Hellwig
2002-12-29 22:26 ` Andrew Morton
2002-12-29 22:40 ` John Bradford
2002-12-31 2:30 ` Bill Davidsen
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=3E0F6F64.DDE742A3@digeo.com \
--to=akpm@digeo.com \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.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