linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	linux-rt-users@vger.kernel.org
Subject: Re: [3.4-rt] backport of completion-use-simple-wait-queues.patch
Date: Fri, 29 Nov 2013 13:49:31 +0100	[thread overview]
Message-ID: <20131129124931.GA31099@linutronix.de> (raw)
In-Reply-To: <20131128201029.GA28966@windriver.com>

* Paul Gortmaker | 2013-11-28 15:10:29 [-0500]:

>Hi Steve,
Hi Paul,

>Someone tripped over this with usb console:
>
>    in_atomic(): 0, irqs_disabled(): 1, pid: 36, name: kworker/1:1
>    Pid: 36, comm: kworker/1:1 Tainted: G           O 3.4.34-rt40_preempt-rt #1
>    Call Trace:
>     [<c105461e>] __might_sleep+0xce/0xf0
>     [<c14fe24c>] rt_spin_lock+0x1c/0x40
>     [<c1056f65>] complete+0x25/0x60
>     [<c14fde10>] ? rt_mutex_lock+0x20/0x50
>     [<c135e1b0>] usb_stor_blocking_completion+0x10/0x20
>     [<c13317b7>] usb_poll_irq_flush_helper+0x67/0xf0
>     [<c1056ad4>] ? migrate_enable+0x74/0x170
>     [<c10427f7>] process_one_work+0x107/0x410

 git grep usb_poll_irq_flush_helper
shows no results in 3.4.61-rt77 and 3.6.11.9-rt42. 
The function seems to disable interrups and it completes a usb-storage
request. This would works on mainline but in -RT those things run in thread
context (usb-hcd-use-local-irq-nort.patch).

Depending on what urbs you complete via usb_poll_irq_flush_helper() you
could deadlock if the urb-complete handler grabs a lock.

>Thanks,
>Paul.

Sebastian

  reply	other threads:[~2013-11-29 12:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-28 20:10 [3.4-rt] backport of completion-use-simple-wait-queues.patch Paul Gortmaker
2013-11-29 12:49 ` Sebastian Andrzej Siewior [this message]
2013-11-29 15:11   ` Paul Gortmaker
2013-11-29 22:21     ` Steven Rostedt
2013-11-29 23:29       ` Paul Gortmaker

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=20131129124931.GA31099@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=paul.gortmaker@windriver.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    /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;
as well as URLs for NNTP newsgroup(s).