From: Andrew Morton <akpm@digeo.com>
To: george anzinger <george@mvista.com>
Cc: torvalds@transmeta.com, felipe_alfaro@linuxmail.org,
cobra@compuserve.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Re: Runaway cron task on 2.5.63/4 bk?
Date: Tue, 11 Mar 2003 20:57:49 -0800 [thread overview]
Message-ID: <20030311205749.436eea7a.akpm@digeo.com> (raw)
In-Reply-To: <3E6EAD5F.801@mvista.com>
george anzinger <george@mvista.com> wrote:
>
> Ok, here is what I have. I changed nano sleep to use a local 64-bit
> value for the target expire time in jiffies. As much as MAX-INT/2-1
> will be put in the timer at any one time. It loops till the target
> time is met or exceeded. The changes affect (clock)nanosleep only and
> not timers (they still error out for large values).
Seem sane.
> I now use the simple u64=(long long) a * b for the mpy so I have
> dropped the sc_math.h stuff (I will bring that round again :).
Resistance shall be unflagging!
> What do you think?
Sorry, but this little bit:
while ((active = del_timer_sync(&new_timer) ||
rq_time > get_jiffies_64()) &&
!test_thread_flag(TIF_SIGPENDING));
if (abs_struct.list.next) {
spin_lock_irq(&nanosleep_abs_list_lock);
list_del(&abs_struct.list);
spin_unlock_irq(&nanosleep_abs_list_lock);
}
if (active) {
should be dragged out and mercifully shot. Is it possible to make that while
loop a little clearer?
The abs_list exactly duplicates the kernel's existing waitqueue
functionality. You can use prepare_to_wait()/finish_wait() there.
posix_timers_id, posix_clocks[], nanosleep_abs_list_lock and
nanosleep_abs_list should be static to posix-timers.c.
next prev parent reply other threads:[~2003-03-12 4:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-10 23:05 Runaway cron task on 2.5.63/4 bk? Felipe Alfaro Solana
2003-03-10 23:33 ` Linus Torvalds
2003-03-11 10:20 ` george anzinger
2003-03-11 22:44 ` Andrew Morton
2003-03-11 23:02 ` Linus Torvalds
2003-03-11 23:09 ` Andrew Morton
2003-03-11 23:18 ` Linus Torvalds
2003-03-11 23:34 ` Andrew Morton
2003-03-11 23:46 ` george anzinger
2003-03-11 23:46 ` Linus Torvalds
2003-03-12 1:55 ` Jamie Lokier
2003-03-12 12:04 ` Denis Vlasenko
2003-03-11 23:35 ` george anzinger
2003-03-12 0:48 ` Matti Aarnio
2003-03-12 3:45 ` [PATCH] " george anzinger
2003-03-12 4:57 ` Andrew Morton [this message]
2003-03-12 10:09 ` george anzinger
-- strict thread matches above, loose matches on Subject: below --
2003-03-09 7:30 Kevin Brosius
2003-03-09 8:08 ` Andrew Morton
2003-03-09 8:17 ` Andrew Morton
2003-03-09 16:28 ` [PATCH] " Todd Mokros
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=20030311205749.436eea7a.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=cobra@compuserve.com \
--cc=felipe_alfaro@linuxmail.org \
--cc=george@mvista.com \
--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