From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756638AbcDGXVa (ORCPT ); Thu, 7 Apr 2016 19:21:30 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:41846 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751461AbcDGXV2 (ORCPT ); Thu, 7 Apr 2016 19:21:28 -0400 X-Sasl-enc: +eU+AfPz2KYvduKTaLj6vEc5d+hRC8S5SJy+r2ysdUHY 1460071287 Subject: Re: [PATCH net] lockdep: provide always true lockdep_is_held stub if lockdep disabled To: linux-kernel@vger.kernel.org References: <1460070722-18652-1-git-send-email-hannes@stressinduktion.org> Cc: netdev@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Eric Dumazet , David Miller From: Hannes Frederic Sowa Message-ID: <5706EB74.9050108@stressinduktion.org> Date: Fri, 8 Apr 2016 01:21:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <1460070722-18652-1-git-send-email-hannes@stressinduktion.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.04.2016 01:12, Hannes Frederic Sowa wrote: > I need this to provide a generic lockdep_sock_is_held function which can > be easily used in the kernel without using ifdef PROVEN macros. > > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Eric Dumazet > Cc: David Miller > Signed-off-by: Hannes Frederic Sowa > --- > Hello Peter and Ingo, > > if it is possible coud this go in via the net-tree, as this problem is > visible there already? Would be happy to get a review. I take this patch back, as some call sites test if the lock is definitely not held. I come up with a better approach.