Re: lockdep info message

From: Peter Zijlstra
Date: Fri Oct 26 2012 - 07:26:11 EST


On Fri, 2012-10-26 at 12:15 +0200, Arend van Spriel wrote:
> Hi Peter and/or Ingo,
>
> I am working on a driver (brcmfmac) and when unloading it or unplugging
> the device I get this info message (see below) upon calling
> cancel_work_sync(). Just wondering if there is something I need to do in
> the driver or should it be done in workqueue code.

Your driver, as that's the one allocating the struct work_struct thingy.

You've either failed to use INIT_WORK() or need to use
INIT_WORK_ONSTACK() if that's appropriate. It looks like you could have
used DECLARE*_WORK inside a function or something similar.

Anyway, without the driver code present I can't really say much more.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/