Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1676038
| Path | csiph.com!goblin2!goblin3!goblin.stu.neva.ru!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Tejun Heo <tj@kernel.org> |
| Newsgroups | linux.kernel |
| Subject | Re: 4.12.0-rc6+: WQ_MEM_RECLAIM hci0:hci_power_off is flushing !WQ_MEM_RECLAIM events:btusb_work |
| Date | Tue, 27 Jun 2017 19:50:01 +0200 |
| Message-ID | <tX2MF-3Ox-5@gated-at.bofh.it> (permalink) |
| References | <tWksi-8vA-15@gated-at.bofh.it> <tX0Bc-2nz-39@gated-at.bofh.it> <tX2tk-3Gw-7@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6nT2PDuj55sPfHWPZKVJ1xbMQ+G1BrzdRFLXu7nJd4M=; b=gcobmhYiRS829LTwHeafU1LOexGg9DvoKs36wl/p0JPi/K7km8YVSah+3Y0ulrf3q0 i8bbUOyU5UA5tiD0oo5pq1JVLnYlHNmVVh+p7CY6vAUiVAZiWJzLcJGuju3cjh9A2Hm1 dOvQOev9kldMzJVjFxJsFfiwOdygiOs7InLXNkv62HfMO3ewDf6NqOAJq42MoO0VeuSY eOg4UNKlApCYez5qL+019Ev/Vv84KwVHyAxD2d86nGHZherb+pZs+0XjyHgovjWIm6T1 YWMAPsVTtMxQWDVhxnK6Aegv3XCk8HG1xL8tKDSgdw0bF2hxj9QRtTncczC1yeylzqUN +ysg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=6nT2PDuj55sPfHWPZKVJ1xbMQ+G1BrzdRFLXu7nJd4M=; b=ainuo8+anK3o9NGr8uwcnJMMx81bNjJt3igpmDvOQUJ9ZcexAF7apHGOo8zRE3lkwv d/PQJIYc7u1UQsstLGbfkXJNaTUN8thbxDOD+WUm3418X0SjEAFcRcPxA0K7tLXxCe4u bEveeQP9e1RYzhML0sV6E6rY3hGUQ9e0X4fx6CjCEres5dnkOBFHTmR3AMD8cbLqvif6 a/4sfTskBlRDATBRanibZmAJMpnGGGwoTeFvlwnUO6r+D30J5LiJOmYdCzyGbuPDGPA0 La+LAGnVlfI1JQeJtS0UaG/MRPR6zAiCbwrI+91xCaks5Em8wK3qQf9ZqvvppKqwvHYn vgiA== |
| X-Gm-Message-State | AKS2vOzlu76k/GtkpdoLpkUWtet15iiQel55bwGcXZ7kBesUJt93I2U/ zn1HSETiEBoXZA== |
| X-Received | by 10.13.228.135 with SMTP id n129mr4647004ywe.184.1498585188101; Tue, 27 Jun 2017 10:39:48 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.8.2 (2017-04-18) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 57 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Dominik Brodowski <linux@dominikbrodowski.net>, "Gustavo F. Padovan" <gustavo@padovan.org>, Johan Hedberg <johan.hedberg@gmail.com>, LKML <linux-kernel@vger.kernel.org>, linux-bluetooth@vger.kernel.org |
| X-Original-Date | Tue, 27 Jun 2017 13:39:46 -0400 |
| X-Original-Message-ID | <20170627173946.GE2289@htj.duckdns.org> |
| X-Original-References | <20170625182149.GA18000@light.dominikbrodowski.net> <20170627152032.GA2289@htj.duckdns.org> <83EA7A09-DDFB-4CEB-8F45-52BFDCE3C6DF@holtmann.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1676038 |
Show key headers only | View raw
Hello, Marcel.
On Tue, Jun 27, 2017 at 07:28:40PM +0200, Marcel Holtmann wrote:
> >> On my Dell XPS 13 9343 (x86_64), the following warning was logged right
> >> after a resume from suspend-to-mem (not on *every* resume, though, so it
> >> might be hard to reproduce). The kernel is v4.12.0-rc6+ as of 94a6df251dd0,
> >> and I don't really use bluetooth, though the drivers are loaded:
> >>
> >> PM: Finishing wakeup.
> >> OOM killer enabled.
> >> Restarting tasks ... done.
> >> Bluetooth: hci0: read Intel version: 370710018002030d00
> >> Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
> >> Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
> >> ... <more, unrelated messages>
> >> workqueue: WQ_MEM_RECLAIM hci0:hci_power_off is flushing !WQ_MEM_RECLAIM events:btusb_work
> >
> > So, WQ_MEM_RECLAIM has to be transitive; otherwise, it doesn't mean
> > anything. I have a hard time believing that bluetooth actually needs
> > WQ_MEM_RECLAIM unless people mount nfs through a bluetooth tethered
> > phone. Would it be possible to remove WQ_MEM_RECLAIM from these
> > workqueues?
>
> frankly I do not remember. We used what was recommended to use. I
> know that the only requirement in one case is that it is a truly
> single workqueue.
Heh, I don't remember either. I wonder whether there is an existing
dependency chain from network side which triggers the warning.
Dominik, can you please see whether the following patch makes the
warning go away while not triggering new ones?
Thanks.
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 05686776a5fb..85ec6f7afbf7 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -3047,15 +3047,14 @@ int hci_register_dev(struct hci_dev *hdev)
BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus);
- hdev->workqueue = alloc_workqueue("%s", WQ_HIGHPRI | WQ_UNBOUND |
- WQ_MEM_RECLAIM, 1, hdev->name);
+ hdev->workqueue = alloc_ordered_workqueue("%s", WQ_HIGHPRI, hdev->name);
if (!hdev->workqueue) {
error = -ENOMEM;
goto err;
}
- hdev->req_workqueue = alloc_workqueue("%s", WQ_HIGHPRI | WQ_UNBOUND |
- WQ_MEM_RECLAIM, 1, hdev->name);
+ hdev->req_workqueue = alloc_ordered_workqueue("%s", WQ_HIGHPRI,
+ hdev->name);
if (!hdev->req_workqueue) {
destroy_workqueue(hdev->workqueue);
error = -ENOMEM;
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
4.12.0-rc6+: WQ_MEM_RECLAIM hci0:hci_power_off is flushing !WQ_MEM_RECLAIM events:btusb_work Dominik Brodowski <linux@dominikbrodowski.net> - 2017-06-25 20:30 +0200
Re: 4.12.0-rc6+: WQ_MEM_RECLAIM hci0:hci_power_off is flushing !WQ_MEM_RECLAIM events:btusb_work Tejun Heo <tj@kernel.org> - 2017-06-27 17:30 +0200
Re: 4.12.0-rc6+: WQ_MEM_RECLAIM hci0:hci_power_off is flushing !WQ_MEM_RECLAIM events:btusb_work Marcel Holtmann <marcel@holtmann.org> - 2017-06-27 19:30 +0200
Re: 4.12.0-rc6+: WQ_MEM_RECLAIM hci0:hci_power_off is flushing !WQ_MEM_RECLAIM events:btusb_work Tejun Heo <tj@kernel.org> - 2017-06-27 19:50 +0200
Re: 4.12.0-rc6+: WQ_MEM_RECLAIM hci0:hci_power_off is flushing !WQ_MEM_RECLAIM events:btusb_work Dominik Brodowski <linux@dominikbrodowski.net> - 2017-06-28 15:00 +0200
[PATCH] bluetooth: remove WQ_MEM_RECLAIM from hci workqueues Tejun Heo <tj@kernel.org> - 2017-06-28 20:50 +0200
Re: [PATCH] bluetooth: remove WQ_MEM_RECLAIM from hci workqueues Marcel Holtmann <marcel@holtmann.org> - 2017-06-29 14:40 +0200
csiph-web