Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1356071 > unrolled thread
| Started by | Tejun Heo <tj@kernel.org> |
|---|---|
| First post | 2016-03-11 18:20 +0100 |
| Last post | 2016-03-17 13:10 +0100 |
| Articles | 2 — 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: net/bluetooth: workqueue destruction WARNING in hci_unregister_dev Tejun Heo <tj@kernel.org> - 2016-03-11 18:20 +0100
Re: net/bluetooth: workqueue destruction WARNING in hci_unregister_dev Jiri Slaby <jslaby@suse.cz> - 2016-03-17 13:10 +0100
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Date | 2016-03-11 18:20 +0100 |
| Subject | Re: net/bluetooth: workqueue destruction WARNING in hci_unregister_dev |
| Message-ID | <rbyTg-161-21@gated-at.bofh.it> |
Hello, Sorry about the delay. On Thu, Mar 03, 2016 at 10:12:01AM +0100, Jiri Slaby wrote: > On 03/02/2016, 04:45 PM, Tejun Heo wrote: > > On Fri, Feb 19, 2016 at 01:10:00PM +0100, Jiri Slaby wrote: > >>> 1. didn't help, the problem persists. So I haven't applied the patch from 2. > >> > >> FWIW I dumped more info about the wq: > >> wq->name='hci0' pwq=ffff8800390d7600 wq->dfl_pwq=ffff8800390d5200 > >> pwq->refcnt=2 pwq->nr_active=0 delayed_works: <nothing> > > > > Can you please print out the same info for all pwq's during shutdown? > > It looks like we're leaking pwq refcnt but I can't spot a place where > > that could happen on an empty pwq. > > I have not done that yet, but today, I see: > destroy_workqueue: name='req_hci0' pwq=ffff88002f590300 > wq->dfl_pwq=ffff88002f591e00 pwq->refcnt=2 pwq->nr_active=0 delayed_works: > pwq 12: cpus=0-1 node=0 flags=0x4 nice=-20 active=0/1 > in-flight: 18568:wq_barrier_func So, this means that there's flush_work() racing against workqueue destruction, which can't be safe. :( Thanks. -- tejun
[toc] | [next] | [standalone]
| From | Jiri Slaby <jslaby@suse.cz> |
|---|---|
| Date | 2016-03-17 13:10 +0100 |
| Message-ID | <rdEUy-7h0-13@gated-at.bofh.it> |
| In reply to | #1356071 |
[Multipart message — attachments visible in raw view] — view raw
Hello, On 03/11/2016, 06:12 PM, Tejun Heo wrote: > On Thu, Mar 03, 2016 at 10:12:01AM +0100, Jiri Slaby wrote: >> On 03/02/2016, 04:45 PM, Tejun Heo wrote: >>> On Fri, Feb 19, 2016 at 01:10:00PM +0100, Jiri Slaby wrote: >>>>> 1. didn't help, the problem persists. So I haven't applied the patch from 2. >>>> >>>> FWIW I dumped more info about the wq: >>>> wq->name='hci0' pwq=ffff8800390d7600 wq->dfl_pwq=ffff8800390d5200 >>>> pwq->refcnt=2 pwq->nr_active=0 delayed_works: <nothing> >>> >>> Can you please print out the same info for all pwq's during shutdown? >>> It looks like we're leaking pwq refcnt but I can't spot a place where >>> that could happen on an empty pwq. >> >> I have not done that yet, but today, I see: >> destroy_workqueue: name='req_hci0' pwq=ffff88002f590300 >> wq->dfl_pwq=ffff88002f591e00 pwq->refcnt=2 pwq->nr_active=0 delayed_works: >> pwq 12: cpus=0-1 node=0 flags=0x4 nice=-20 active=0/1 >> in-flight: 18568:wq_barrier_func > > So, this means that there's flush_work() racing against workqueue > destruction, which can't be safe. :( But I cannot trigger the WARN_ONs in the attached patch, so I am confused how this can happen :(. (While I am still seeing the destroy WARNINGs.) BTW. what did you mean by dumping the states at shutdown? Is it still relevant? thanks, -- js suse labs
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web