Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1633807 > unrolled thread
| Started by | Tejun Heo <tj@kernel.org> |
|---|---|
| First post | 2017-05-01 20:50 +0200 |
| Last post | 2017-05-01 22:10 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: WARN_ON_ONCE() in process_one_work()? Tejun Heo <tj@kernel.org> - 2017-05-01 20:50 +0200
Re: WARN_ON_ONCE() in process_one_work()? Steven Rostedt <rostedt@goodmis.org> - 2017-05-01 21:50 +0200
Re: WARN_ON_ONCE() in process_one_work()? Tejun Heo <tj@kernel.org> - 2017-05-01 22:00 +0200
Re: WARN_ON_ONCE() in process_one_work()? Steven Rostedt <rostedt@goodmis.org> - 2017-05-01 22:10 +0200
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Date | 2017-05-01 20:50 +0200 |
| Subject | Re: WARN_ON_ONCE() in process_one_work()? |
| Message-ID | <tCoyu-4dM-9@gated-at.bofh.it> |
Hello, Paul.
Hmmm... Steven reproted a similar issue.
http://lkml.kernel.org/r/20170405151628.33df783f@gandalf.local.home
On Mon, May 01, 2017 at 09:57:47AM -0700, Paul E. McKenney wrote:
> Hello!
>
> I am hitting this WARN_ON_ONCE() in process_one_work() and am wondering
> what I did wrong to make this happen:
>
> ------------------------------------------------------------------------
>
> static void process_one_work(struct worker *worker, struct work_struct *work)
> __releases(&pool->lock)
> __acquires(&pool->lock)
> {
> struct pool_workqueue *pwq = get_work_pwq(work);
> struct worker_pool *pool = worker->pool;
> bool cpu_intensive = pwq->wq->flags & WQ_CPU_INTENSIVE;
> int work_color;
> struct worker *collision;
> #ifdef CONFIG_LOCKDEP
> /*
> * It is permissible to free the struct work_struct from
> * inside the function that is called from it, this we need to
> * take into account for lockdep too. To avoid bogus "held
> * lock freed" warnings as well as problems when looking into
> * work->lockdep_map, make a copy and use that here.
> */
> struct lockdep_map lockdep_map;
>
> lockdep_copy_map(&lockdep_map, &work->lockdep_map);
> #endif
> /* ensure we're on the correct CPU */
> WARN_ON_ONCE(!(pool->flags & POOL_DISASSOCIATED) &&
> raw_smp_processor_id() != pool->cpu);
>
> ------------------------------------------------------------------------
>
> Here is the splat:
>
> ------------------------------------------------------------------------
>
> [12600.593006] WARNING: CPU: 0 PID: 6 at /home/paulmck/public_git/linux-rcu/kernel/workqueue.c:2041 process_one_work+0x46c/0x4d0
> [12600.593006] Modules linked in:
> [12600.593006] CPU: 0 PID: 6 Comm: mm_percpu_wq Not tainted 4.11.0-rc7+ #1
> [12600.593006] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014
> [12600.593006] Call Trace:
> [12600.593006] dump_stack+0x4f/0x72
> [12600.593006] __warn+0xc6/0xe0
> [12600.593006] warn_slowpath_null+0x18/0x20
> [12600.593006] process_one_work+0x46c/0x4d0
> [12600.593006] rescuer_thread+0x20e/0x3b0
> [12600.593006] kthread+0x104/0x140
> [12600.593006] ? worker_thread+0x4e0/0x4e0
> [12600.593006] ? kthread_create_on_node+0x40/0x40
> [12600.593006] ret_from_fork+0x29/0x40
>
> ------------------------------------------------------------------------
>
> This happens about 3.5 hours into the TREE03 rcutorture scenario, .config
> attached.
Steven's involved a rescuer too. One possibility was cpuset being
involved somehow and messing up the affinity of the rescuer kthread
unexpectedly. Is cpuset involved in any way?
Thanks.
--
tejun
[toc] | [next] | [standalone]
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2017-05-01 21:50 +0200 |
| Message-ID | <tCpux-4NU-5@gated-at.bofh.it> |
| In reply to | #1633807 |
On Mon, 1 May 2017 14:42:50 -0400 Tejun Heo <tj@kernel.org> wrote: > Steven's involved a rescuer too. One possibility was cpuset being > involved somehow and messing up the affinity of the rescuer kthread > unexpectedly. Is cpuset involved in any way? I didn't do anything with cpuset. I did take CPUs offline though. I'm currently testing changes, but when its done, I'll remove the "WARN_ON() comment out" and see if I can reproduce it again. -- Steve
[toc] | [prev] | [next] | [standalone]
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Date | 2017-05-01 22:00 +0200 |
| Message-ID | <tCpEe-4R3-21@gated-at.bofh.it> |
| In reply to | #1633835 |
On Mon, May 01, 2017 at 03:42:37PM -0400, Steven Rostedt wrote: > On Mon, 1 May 2017 14:42:50 -0400 > Tejun Heo <tj@kernel.org> wrote: > > > Steven's involved a rescuer too. One possibility was cpuset being > > involved somehow and messing up the affinity of the rescuer kthread > > unexpectedly. Is cpuset involved in any way? > > I didn't do anything with cpuset. I did take CPUs offline though. > > I'm currently testing changes, but when its done, I'll remove the > "WARN_ON() comment out" and see if I can reproduce it again. Were you also using nohz_full? Thanks. -- tejun
[toc] | [prev] | [next] | [standalone]
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2017-05-01 22:10 +0200 |
| Message-ID | <tCpNT-59h-3@gated-at.bofh.it> |
| In reply to | #1633845 |
On Mon, 1 May 2017 15:50:58 -0400 Tejun Heo <tj@kernel.org> wrote: > > Were you also using nohz_full? Do you mean, "was it compiled in" or "was I actually using it. ie. had it on the command line"? It may have been compiled in, but I didn't do anything to activate it. -- Steve
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web