login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
25
Re: [RFC PATCH 1/3] timer: fix comments of try_to_del_timer_sync()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Yong Zhang
Subject:
Re: [RFC PATCH 1/3] timer: fix comments of try_to_del_timer_sync()
Date: Tuesday, August 24, 2010 - 6:56 pm
On Wed, Aug 25, 2010 at 12:31 AM, Oleg Nesterov <oleg@redhat.com> wrote:
quoted text
> Ah, indeed, I forgot. This was another reason for the comment. > >> > Please remove "#ifdef CONFIG_SMP" from set_running_timer(), then iirc >> > it can be used from irq. >> >> I have noticed your comments in the commit log, but I think it's about >> introducing the same semantic of try_to_del_timer_sync() on UP as well >> as SMP. But this patch is focusing on the current code(SMP special). >> Not about realizing try_to_del_timer_sync() on UP case. Do we need >> to do that? > > I dunno. > > But look, currently try_to_del_timer_sync() is not allowed from interrupt > even if it works with CONFIG_SMP. > > If we "officially" allow it to use from irq, it should work on UP too
OK. I see.
quoted text
> but > it doesn't. del_timer() can't hang, but it can never return -1 to indicate > we hit the running timer. > > Consider: > > // runs in interrup context > > if (try_do_del_timer_sync(&TIMER) > 0) > kfree(something_which_can_be_used_by_TIMER_func); > > This is unsafe on UP.
You are right. It's unsafe here. I will try to update this patch which introduce try_do_del_timer_sync() on UP case. Thanks, Yong --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[RFC PATCH 0/3] timer: patchset focus on del_timer_sync()
, Yong Zhang
, (Mon Aug 23, 11:58 pm)
[RFC PATCH 1/3] timer: fix comments of try_to_del_timer_sync()
, Yong Zhang
, (Mon Aug 23, 11:58 pm)
[RFC PATCH 2/3] timer: del_timer_sync() can be used in sof ...
, Yong Zhang
, (Mon Aug 23, 11:58 pm)
[RFC PATCH 3/3] timer: warn when del_timer_sync() used in ...
, Yong Zhang
, (Mon Aug 23, 11:58 pm)
Re: [RFC PATCH 1/3] timer: fix comments of try_to_del_time ...
, Oleg Nesterov
, (Tue Aug 24, 5:11 am)
Re: [RFC PATCH 1/3] timer: fix comments of try_to_del_time ...
, Yong Zhang
, (Tue Aug 24, 5:49 am)
Re: [RFC PATCH 1/3] timer: fix comments of try_to_del_time ...
, Oleg Nesterov
, (Tue Aug 24, 9:31 am)
Re: [RFC PATCH 1/3] timer: fix comments of try_to_del_time ...
, Yong Zhang
, (Tue Aug 24, 6:56 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Matthew Garrett
Re: [PATCH] Enable speedstep for sonoma processors.
Mauro Carvalho Chehab
Re: [PATCH 1/2] media: Add timberdale video-in driver
Peter Zijlstra
[PATCH 23/30] netvm: skb processing
Greg Kroah-Hartman
[PATCH 21/28] cgroupfs: create /sys/fs/cgroup to mount cgroupfs on
git
:
Jan Hudec
Re: GIT push to sftp (feature request)
Steffen Prohaska
[PATCH 0/4] core.ignorecase
Johannes Schindelin
Re: Git checkout preserve timestamp?
Linus Torvalds
[PATCH 1/7] Make unpack_trees_options bit flags actual bitfields
Johan Herland
Re: What's cooking in git.git (Oct 2010, #01; Wed, 13)
linux-netdev
:
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Jan Engelhardt
Re: [PATCH] Fix netfilter xt_time's time_mt()'s use of do_div()
Herbert Xu
Re: [RFC PATCH 00/17] virtual-bus
Jeff Kirsher
Re: [net-next-2.6 PATCH] e1000e: don't inadvertently re-set INTX_DISABLE
git-commits-head
:
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
Linux Kernel Mailing List
Use path_put() in a few places instead of {mnt,d}put()
Linux Kernel Mailing List
mv643xx_eth: use sw csum for big packets
Linux Kernel Mailing List
arm: fix HAVE_CLK merge goof
Linux Kernel Mailing List
arm: convert pcm037 platform to use smsc911x
freebsd-current
:
David Wolfskill
"interrupt storm..."; seems associated with an0 NIC
Andriy Gapon
Re: letting glabel recognise a media change
Garrett Cooper
Re: Only display ACPI bootmenu key if ACPI is present
Pyun YongHyeon
CFT: msk(4) Rx checksum offloading support
FreeBSD Tinderbox
[head tinderbox] failure on sparc64/sparc64
Colocation donated by:
Syndicate