Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1719534
| From | Jiri Kosina <jikos@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() |
| Date | 2017-08-24 22:00 +0200 |
| Message-ID | <ui6sh-2o2-1@gated-at.bofh.it> (permalink) |
| References | <uftbH-5uW-7@gated-at.bofh.it> <uhbX4-7Cz-27@gated-at.bofh.it> <uhTv4-2Hg-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 24 Aug 2017, Luca Coelho wrote:
> > Work queues cannot be allocated when a mutex is held because the mutex
> > may be in use and that would make it sleep. Doing so generates the
> > following splat with 4.13+:
> >
> > [ 19.513298] ======================================================
> > [ 19.513429] WARNING: possible circular locking dependency detected
> > [ 19.513557] 4.13.0-rc5+ #6 Not tainted
> > [ 19.513638] ------------------------------------------------------
> > [ 19.513767] cpuhp/0/12 is trying to acquire lock:
> > [ 19.513867] (&tz->lock){+.+.+.}, at: [<ffffffff924afebb>] thermal_zone_get_temp+0x5b/0xb0
> > [ 19.514047]
> > [ 19.514047] but task is already holding lock:
> > [ 19.514166] (cpuhp_state){+.+.+.}, at: [<ffffffff91cc4baa>] cpuhp_thread_fun+0x3a/0x210
> > [ 19.514338]
> > [ 19.514338] which lock already depends on the new lock.
> >
> > This lock dependency already existed with previous kernel versions,
> > but it was not detected until commit 49dfe2a67797 ("cpuhotplug: Link
> > lock stacks for hotplug callbacks") was introduced.
> >
> > Reported-by: David Weinehall <david.weinehall@intel.com>
> > Reported-by: Jiri Kosina <jikos@kernel.org>
> > Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
>
> Jiri, did you have a chance to try this out? I'm about to ask Kalle to
> merge this so it gets in in time for 4.13-rc7.
Sorry, I am almost completely offline for one more week (vacation), and
will not have access to the affected system before that. But this indeed
looks like a correct fix to me, so feel free to add
Acked-by: Jiri Kosina <jkosina@suse.cz>
I'll be able to provide my Tested-by: eventually only in ~10 days.
Thanks,
--
Jiri Kosina
SUSE Labs
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [linuxwifi] x86/thermal: AB-BA dependency between mvm->mutex and tz->lock Jiri Kosina <jikos@kernel.org> - 2017-08-17 15:40 +0200
Re: [linuxwifi] x86/thermal: AB-BA dependency between mvm->mutex and tz->lock "Coelho, Luciano" <luciano.coelho@intel.com> - 2017-08-17 16:10 +0200
[PATCH] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() Luca Coelho <luca@coelho.fi> - 2017-08-22 09:40 +0200
[PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() Luca Coelho <luca@coelho.fi> - 2017-08-22 09:40 +0200
Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() Luca Coelho <luca@coelho.fi> - 2017-08-24 08:10 +0200
Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() Jiri Kosina <jikos@kernel.org> - 2017-08-24 22:00 +0200
Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() Luca Coelho <luca@coelho.fi> - 2017-08-24 22:10 +0200
Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() Kalle Valo <kvalo@codeaurora.org> - 2017-08-29 10:20 +0200
Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() Luca Coelho <luca@coelho.fi> - 2017-09-04 13:50 +0200
Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() Jiri Kosina <jikos@kernel.org> - 2017-09-04 13:50 +0200
Re: [v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() Kalle Valo <kvalo@codeaurora.org> - 2017-08-24 16:00 +0200
Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() David Weinehall <david.weinehall@linux.intel.com> - 2017-08-30 17:00 +0200
Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc() Luca Coelho <luca@coelho.fi> - 2017-08-31 08:20 +0200
csiph-web