Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9513276ybi; Wed, 10 Jul 2019 11:37:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuRwnHnc664IbJqt0EXibh2Z65YtFO5abswajCXEFOrHdwnOa396SmqZ82uVLyzLHsu2Lq X-Received: by 2002:a65:518a:: with SMTP id h10mr6907217pgq.117.1562783846366; Wed, 10 Jul 2019 11:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562783846; cv=none; d=google.com; s=arc-20160816; b=AYkHkIAeeiOa/0aTOIgDh6QDqLS8IeuQ4LyB0aA29dMYarayfPJ/2eP70WmR/uxvob kklugtkOGqFCtdQc6u0ksmu4Y76AZ9VWmfCge/6HT01ZAxcH0K0y3J2D5cX6XJbMMQ1H p1CcSIYli59tVMLzCOedYL/ZpjEQpjeB2onzZicXmseXCtNfPnb6pFlYmhZ8Zsx0pTW6 l9/cGMAuQVMrN5X472xvnA3zpPh4opJslI+19GwAS15qw3km/aI6fqYXLLlH23s40vqo +91u6DFoydOAVUDzvSPs67WakTVc7syux+i+kTIrswEryCGmi8JPJ2htLULn87uSupAn ftig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=USfTc8VlQ7lMuVnExRUFHsZN24BSBPa8IsBimhGr2ZM=; b=h2HlQKMWjitlnwP8sx92tP4A+vRezGlFDaKqJZklX5sPLOjEPVbHGZaBJDM/HoYq7a hpYj0etecPIsuBYUZLEG9HnNIPX89eUR9lMZYbj8R+Wxw1NXDzQvUz4QhJbNozIFRlZJ 8HG01NevMDxCYTO7NJRW0QLsU22HUra/3DW7BFyhzZ5E1EU4sfUUID2BNXOTy2WPYHwa 3g1OR32Zt1M//a8AvmmW1fYoE3L5xnjYEHt96T7uI/MgaL9zK3S33DpZBVov+apmMmG1 uUnwWaNfD6oRUtyBKkyG90aq+GQ3jH0svM9VCbFcGaWRtDLCdy36bK74N2VObqG7poOz RRmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z6Jda9RG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si3131461pgi.430.2019.07.10.11.37.09; Wed, 10 Jul 2019 11:37:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z6Jda9RG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728215AbfGJSSw (ORCPT + 99 others); Wed, 10 Jul 2019 14:18:52 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:44612 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728195AbfGJSSv (ORCPT ); Wed, 10 Jul 2019 14:18:51 -0400 Received: by mail-io1-f68.google.com with SMTP id s7so6731242iob.11; Wed, 10 Jul 2019 11:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=USfTc8VlQ7lMuVnExRUFHsZN24BSBPa8IsBimhGr2ZM=; b=Z6Jda9RG/tdgKYTzGiVVDcvZZp/F/qWlDeFrShf1uIgoQAOTS6/tHF9dNrtwEbPrJb sZhYepRIwoOnimBaSacn14WAkROBMgygCwxFAoZYYrXBc+moL2zkrx5am4CthzBBd1ZI V5lVO6dcLeLZqqSPPk590dUve+CDcU/BTFXUK1YRVhRNFzMkq5/V29aqadJBE7kP8Ix+ FlUVs1aIS9DrtE5W2Dhi5Y8WG96TewiIeUvMgb4rB5i+f6UpUwVHOv4V2/2K4pK4rvVv 8b2RcO84KahTGkSQuBk/1pHtRlD2F81PSCc469f5haqlq0BEQoGTJSjz2RE+tTENPBO2 iB7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=USfTc8VlQ7lMuVnExRUFHsZN24BSBPa8IsBimhGr2ZM=; b=r8EdsNNg0N8Mj4bAVDRU8VqSwfpyKXet+4W6NEZakwUj1bodEA/+JUlb3X5lBYlvOJ HEZs2oVLrqkgbhsw4IXbvYmZlvbNDZ2eLL7aREzdnpH4i/CWlaG0eJN+OupDS2LfTKam LlQV0Vkf9rcEu2XhiZSr2o4m2fhp+v/e6ALQJXNXPvIFThsp55KonsLsS0O+huO56Fkg UhpXtU+bXOH9rFiuXMa5i5pS6oHIuiAYAEwo1yXnWOG6lszxPqj6y7fPts0XCB/UwhkE 5qONXp6MXfugLqsdSXyFDTQ6jBUie/cJ3C2YDWOINsD8rLdqIHPfwQsMExSNrTK8NsCn CEhQ== X-Gm-Message-State: APjAAAURUxCHXTIlOTx6WKbuafdxIOirTa/PCW2dXw2PzWVGSAk0E7kL 9XWtDJT/QQHqmQBx9b2s1lQxxcKIvqCEANwuBRo= X-Received: by 2002:a5e:d817:: with SMTP id l23mr11139904iok.282.1562782731034; Wed, 10 Jul 2019 11:18:51 -0700 (PDT) MIME-Version: 1.0 References: <20190709165459.11b353d8@canb.auug.org.au> <20190710100138.0aa36d47@canb.auug.org.au> In-Reply-To: <20190710100138.0aa36d47@canb.auug.org.au> From: Ilya Dryomov Date: Wed, 10 Jul 2019 20:21:33 +0200 Message-ID: Subject: Re: linux-next: build failure after merge of the tip tree To: Stephen Rothwell Cc: Sage Weil , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Linux Next Mailing List , Linux Kernel Mailing List , Nikolay Borisov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 10, 2019 at 2:01 AM Stephen Rothwell wrote: > > Hi all, > > On Tue, 9 Jul 2019 16:54:59 +1000 Stephen Rothwell wrote: > > > > After merging the tip tree, today's linux-next build (x86_64 allmodconfig) > > failed like this: > > > > drivers/block/rbd.c: In function 'wake_lock_waiters': > > drivers/block/rbd.c:3933:2: error: implicit declaration of function 'lockdep_assert_held_exclusive'; did you mean 'lockdep_assert_held_write'? [-Werror=implicit-function-declaration] > > lockdep_assert_held_exclusive(&rbd_dev->lock_rwsem); > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > lockdep_assert_held_write > > > > Caused by commit > > > > 9ffbe8ac05db ("locking/lockdep: Rename lockdep_assert_held_exclusive() -> lockdep_assert_held_write()") > > > > interacting with commits > > > > 637cd060537d ("rbd: new exclusive lock wait/wake code") > > a2b1da09793d ("rbd: lock should be quiesced on reacquire") > > > > from the ceph tree. > > > > I have added the following merge fix patch for today. > > > > From: Stephen Rothwell > > Date: Tue, 9 Jul 2019 16:46:12 +1000 > > Subject: [PATCH] rbd: fix up for lockdep_assert_held_exclusive rename > > > > Signed-off-by: Stephen Rothwell > > --- > > drivers/block/rbd.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c > > index 723c3ef4bd59..02216fbdb854 100644 > > --- a/drivers/block/rbd.c > > +++ b/drivers/block/rbd.c > > @@ -3930,7 +3930,7 @@ static void wake_lock_waiters(struct rbd_device *rbd_dev, int result) > > struct rbd_img_request *img_req; > > > > dout("%s rbd_dev %p result %d\n", __func__, rbd_dev, result); > > - lockdep_assert_held_exclusive(&rbd_dev->lock_rwsem); > > + lockdep_assert_held_write(&rbd_dev->lock_rwsem); > > > > cancel_delayed_work(&rbd_dev->lock_dwork); > > if (!completion_done(&rbd_dev->acquire_wait)) { > > @@ -4209,7 +4209,7 @@ static bool rbd_quiesce_lock(struct rbd_device *rbd_dev) > > bool need_wait; > > > > dout("%s rbd_dev %p\n", __func__, rbd_dev); > > - lockdep_assert_held_exclusive(&rbd_dev->lock_rwsem); > > + lockdep_assert_held_write(&rbd_dev->lock_rwsem); > > > > if (rbd_dev->lock_state != RBD_LOCK_STATE_LOCKED) > > return false; > > This fix now needs to be applied to the merge of the ceph tree. Hi Stephen, Yes, that is what I figured would happen. I assume you would keep carrying this fixup until the ceph tree is merged. Thanks, Ilya