login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
1
Re: BUG: using smp_processor_id() in preemptible [00000000] code: icedove-bin/5449
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Ingo Molnar
Subject:
Re: BUG: using smp_processor_id() in preemptible [00000000] code: icedove-bin/5449
Date: Monday, May 31, 2010 - 11:55 pm
* Jens Axboe <axboe@kernel.dk> wrote:
quoted text
> On Tue, Jun 01 2010, Ingo Molnar wrote: > > > > * Peter Zijlstra <peterz@infradead.org> wrote: > > > > > On Mon, 2010-05-24 at 05:03 +0200, Piotr Hosowicz wrote: > > > > [ 720.313607] BUG: using smp_processor_id() in preemptible [00000000] code: icedove-bin/5449 > > > > [ 720.313612] caller is native_sched_clock+0x3c/0x68 > > > > [ 720.313616] Pid: 5449, comm: icedove-bin Tainted: P 2.6.34-20100524-0407 #1 > > > > [ 720.313618] Call Trace: > > > > [ 720.313624] [<ffffffff811a533b>] debug_smp_processor_id+0xc7/0xe0 > > > > [ 720.313629] [<ffffffff81009b87>] native_sched_clock+0x3c/0x68 > > > > [ 720.313634] [<ffffffff81009a4d>] sched_clock+0x9/0xd > > > > [ 720.313637] [<ffffffff811823ec>] blk_rq_init+0x92/0x9d > > > > [ 720.313641] [<ffffffff81184227>] get_request+0x1bf/0x2c7 > > > > [ 720.313646] [<ffffffff8118435c>] get_request_wait+0x2d/0x19d > > > > > > This comes from wreckage in the blk tree.. > > > > > > --- > > > commit 9195291e5f05e01d67f9a09c756b8aca8f009089 > > > Author: Divyesh Shah <dpshah@google.com> > > > Date: Thu Apr 1 15:01:41 2010 -0700 > > > > > > blkio: Increment the blkio cgroup stats for real now > > > > Jens, this regression is still in .35-rc1 and triggers in about 25% of all > > -tip boot tests. > > > > The above commit is using sched_clock() in an unsafe way - please fix it or > > revert it. > > > > The local_clock() changes PeterZ is working on are still WIP, it's not sure > > we'll have it before .36. > > OK, I guess we'll have to solve this differently for .35 - I'll cook up > something simple, if need be revert the change.
I suspect you can put get_cpu/put_cpu around it and use cpu_clock(). The cross-CPU effects will still be there and there might be weird stats. Ingo --
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:
BUG: using smp_processor_id() in preemptible [00000000] co ...
, Piotr Hosowicz
, (Sun May 23, 8:03 pm)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Mon May 24, 10:22 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Peter Zijlstra
, (Tue May 25, 1:50 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 2:42 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Ingo Molnar
, (Tue May 25, 2:43 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Peter Zijlstra
, (Tue May 25, 2:45 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Peter Zijlstra
, (Tue May 25, 2:47 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Peter Zijlstra
, (Tue May 25, 2:51 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 2:57 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Peter Zijlstra
, (Tue May 25, 3:00 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 3:05 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 3:29 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 7:13 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 7:34 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Peter Zijlstra
, (Tue May 25, 7:36 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 7:48 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Peter Zijlstra
, (Tue May 25, 9:15 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 9:47 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Divyesh Shah
, (Tue May 25, 11:07 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 11:15 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Peter Zijlstra
, (Tue May 25, 2:35 pm)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 7:06 pm)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Piotr Hosowicz
, (Tue May 25, 7:51 pm)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Andrew Morton
, (Wed May 26, 4:02 pm)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Peter Zijlstra
, (Wed May 26, 11:46 pm)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Andrew Morton
, (Wed May 26, 11:51 pm)
Re: [PATCH] sched_clock: Provide local_clock() and improve ...
, Peter Zijlstra
, (Fri May 28, 6:13 am)
Re: [PATCH] sched_clock: Provide local_clock() and improve ...
, Johannes Stezenbach
, (Fri May 28, 6:42 am)
Re: [PATCH] sched_clock: Provide local_clock() and improve ...
, Piotr Hosowicz
, (Fri May 28, 7:15 am)
Re: [PATCH] sched_clock: Provide local_clock() and improve ...
, Piotr Hosowicz
, (Fri May 28, 7:22 am)
Re: [PATCH] sched_clock: Provide local_clock() and improve ...
, Peter Zijlstra
, (Fri May 28, 8:08 am)
Re: [PATCH] sched_clock: Provide local_clock() and improve ...
, Chad Talbott
, (Fri May 28, 11:11 am)
Re: [PATCH] sched_clock: Provide local_clock() and improve ...
, Peter Zijlstra
, (Fri May 28, 11:22 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Ingo Molnar
, (Mon May 31, 11:41 pm)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Jens Axboe
, (Mon May 31, 11:47 pm)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Ingo Molnar
, (Mon May 31, 11:55 pm)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Jens Axboe
, (Tue Jun 1, 12:53 am)
blkiocg_update_io_add_stats(): INFO: trying to register no ...
, Ingo Molnar
, (Wed Jun 2, 4:16 am)
Re: blkiocg_update_io_add_stats(): INFO: trying to registe ...
, Jens Axboe
, (Wed Jun 2, 6:04 am)
[tip:sched/core] sched_clock: Add local_clock() API and im ...
, tip-bot for Peter Zi ...
, (Wed Jun 9, 3:13 am)
Re: blkiocg_update_io_add_stats(): INFO: trying to registe ...
, Divyesh Shah
, (Thu Jun 10, 6:33 pm)
Re: blkiocg_update_io_add_stats(): INFO: trying to registe ...
, Peter Zijlstra
, (Fri Jun 11, 12:15 am)
Re: blkiocg_update_io_add_stats(): INFO: trying to registe ...
, Jens Axboe
, (Fri Jun 11, 1:34 am)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Divyesh Shah
, (Fri Jun 11, 6:54 pm)
Re: BUG: using smp_processor_id() in preemptible [00000000 ...
, Peter Zijlstra
, (Sat Jun 12, 2:42 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michael Trimarchi
Re: [PATCH] VFS: make file->f_pos access atomic on 32bit arch
Miklos Szeredi
[patch 14/15] vfs: more path_permission() conversions
Serge E. Hallyn
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
Bernd Schmidt
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Takashi Iwai
[PATCH 2/2] input: Add LED support to Synaptics device
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Shawn O. Pearce
Re: Switching from CVS to GIT
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Santi Béjar
Re: How to use git-fmt-merge-msg?
linux-netdev
:
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Mark Anthony
invitation / inquiry
Ingo Molnar
Re: [PATCH 08/16] dma-debug: add core checking functions
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Sascha Hauer
[PATCH 03/12] fec: do not typedef struct types
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
MIPS: Yosemite: Convert SMP startup lock to arch spinlock.
Linux Kernel Mailing List
ARM: S5PC100: IRQ and timer
Linux Kernel Mailing List
davinci: edma: clear interrupt status for interrupt enabled channels only
Linux Kernel Mailing List
x86, mm, kprobes: fault.c, simplify notify_page_fault()
openbsd-misc
:
Daniel A. Ramaley
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Matthias Kilian
Re: can't get vesa @ 1280x800 or nv
Tobias Ulmer
Re: Problem after upgrade 4.5 to 4.6: ERR M
Philip Guenther
Re: SIGCHLD and libpthread.so
J.C. Roberts
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Colocation donated by:
Syndicate