Re: [PATCH v2 07/32] perf/x86/intel/cqm: add helpers for per-package locking

From: Thomas Gleixner
Date: Wed May 18 2016 - 15:11:43 EST


On Wed, 18 May 2016, Thomas Gleixner wrote:
> On Wed, 11 May 2016, David Carrillo-Cisneros wrote:

> > + cqm_pkg_id_for_each_online(i)
> > + mutex_lock_nested(&cqm_pkgs_data[i]->pkg_data_mutex, i);

Peter just pointed out that this will fail when the number of nest levels
exceeds 8. So any system with more than 8 packages will make lockdep explode.

Thanks,

tglx