Re: [PATCH v2 2/7] drivers/base: Verify struct device locking requirements at runtime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 17, 2018 at 04:40:01PM -0700, Bart Van Assche wrote:
> Make sure that a complaint appears in the kernel log if the driver core
> locking assumptions are violated.
> 
> Cc: Lee Duncan <lduncan@xxxxxxxx>
> Cc: Hannes Reinecke <hare@xxxxxxxx>
> Cc: Luis Chamberlain <mcgrof@xxxxxxxxxx>
> Cc: Johannes Thumshirn <jthumshirn@xxxxxxx>
> Cc: Christoph Hellwig <hch@xxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
> ---
>  drivers/base/dd.c     | 16 ++++++++++++++++
>  drivers/base/memory.c |  4 ++++
>  2 files changed, 20 insertions(+)
> 
> diff --git a/drivers/base/dd.c b/drivers/base/dd.c
> index b4212154a94b..033382421351 100644
> --- a/drivers/base/dd.c
> +++ b/drivers/base/dd.c
> @@ -315,11 +315,15 @@ __exitcall(deferred_probe_exit);
>   */
>  bool device_is_bound(struct device *dev)
>  {
> +	lockdep_assert_held(&dev->mutex);

With this patch applied, are you seeing lockdep messages anywhere?

thanks,

greg k-h



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux