Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp407330pxb; Tue, 29 Mar 2022 05:52:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXMyba6Jm+w8uIfSzXRo7jXduxmQAxqSbWBaDp79tk8mTAL9IQvzX+YhdfplKNAefWmQ8I X-Received: by 2002:a05:6402:3548:b0:419:6a02:c5cd with SMTP id f8-20020a056402354800b004196a02c5cdmr4376614edd.290.1648558358435; Tue, 29 Mar 2022 05:52:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648558358; cv=none; d=google.com; s=arc-20160816; b=cw3JDt3XX/ogsZ8986kYxZjGfKVfZujGuyJI1zs9Sk47jZWgSCfdYr+6PT8XQrpLLP ZS6t5tnd6HFwpKgNsBHdT+Gn8gUHnDcphDw6o2ZM0LmsBfgzOYCZ6YVRFjN8aFwZgKFl UKDYSc4jYReDg7TZceX/fdB58Luuqn9NhaKw8qSpyzhU4FW8JvegS+if5gw4YfJcXjj6 51dpl5WeR1QjO2ywftU/o2rpcKnSxTNraCXNzIvw+ks81HyhygaZYo4y5iRJSnG/ByDG uHXuagO/xKl/6XtgPzAiVkmx+T4gdwXiPSu6/tODtZAzw0FKt9MtTawkHyOtUk9eHjJB aUEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=fPRoQolA0mYy1xTPMGiA2l/aPKxHFaL1dHfv0gHwReA=; b=f9Mtg9f5QlNyiHcuNe4f3BUjNDpMxU5XtUdOW1NKFrVrdcu85BpvshjwWgjQ6dqULI 3Asr0Wzrjhnj4BuCGRU3CKuhoPJXLUy5IcPD5VtO50gnYjC36df7ZpbKA+H/ao/IEeNW uSA1ydYemDlrrHN81enUtrLusAH/ZcC5n/xOLbzsv62tmUju9G4EUVqZuyo9e//hi0N/ PoSmUCdsI+/9YUVKBGIHQF84Ig2IIzTz5PpKf2ifOYIugXc4fZJUkqf24SB/erGLK8xo yRPM6Pd6l15Op3XPTfdwXqKQc/9I159jmECj47miTGfvF2siBOW0hmxo/HkxSTu9I3pk ClYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh26-20020a170906eb9a00b006e0a2593e94si17360046ejb.842.2022.03.29.05.51.45; Tue, 29 Mar 2022 05:52:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233145AbiC2GrY (ORCPT + 99 others); Tue, 29 Mar 2022 02:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233068AbiC2GrX (ORCPT ); Tue, 29 Mar 2022 02:47:23 -0400 Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9727C23C0F0 for ; Mon, 28 Mar 2022 23:45:40 -0700 (PDT) Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id D545D5F8EA; Tue, 29 Mar 2022 08:45:38 +0200 (CEST) From: Rolf Eike Beer To: Christoph Hellwig Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: mm: use mmap_assert_write_locked() instead of open coding it Date: Tue, 29 Mar 2022 08:45:37 +0200 Message-ID: <10178697.CBVEcFiDRS@mobilepool36.emlix.com> In-Reply-To: References: <5827758.TJ1SttVevJ@mobilepool36.emlix.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5766660.gleqY7jeCr"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart5766660.gleqY7jeCr Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Rolf Eike Beer To: Christoph Hellwig Date: Tue, 29 Mar 2022 08:45:37 +0200 Message-ID: <10178697.CBVEcFiDRS@mobilepool36.emlix.com> In-Reply-To: Am Dienstag, 29. M=C3=A4rz 2022, 08:36:39 CEST schrieb Christoph Hellwig: > On Mon, Mar 28, 2022 at 10:24:51AM +0200, Rolf Eike Beer wrote: > > In case the lock is actually not held at this point this also avoids a > > stale lock reference if built with NDEBUG. >=20 > The change looks good: >=20 > Reviewed-by: Christoph Hellwig >=20 > But I don't think NDEBUG is a thing in the kernel. You are right, it was in tools/include/linux/kernel.h and I didn't spot the= =20 prefix. Andrew, maybe you could just delete the sentence when you add the=20 Reviewed-by? Eike =2D-=20 Rolf Eike Beer, emlix GmbH, https://www.emlix.com =46on +49 551 30664-0, Fax +49 551 30664-11 Gothaer Platz 3, 37083 G=C3=B6ttingen, Germany Sitz der Gesellschaft: G=C3=B6ttingen, Amtsgericht G=C3=B6ttingen HR B 3160 Gesch=C3=A4ftsf=C3=BChrung: Heike Jordan, Dr. Uwe Kracke =E2=80=93 Ust-IdNr= =2E: DE 205 198 055 emlix - smart embedded open source --nextPart5766660.gleqY7jeCr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iLMEAAEIAB0WIQQ/Uctzh31xzAxFCLur5FH7Xu2t/AUCYkKrEQAKCRCr5FH7Xu2t /LXcBADMuAegclXembgVJmHq0YcEloLQWTaJRtS92hzIVkoOWoPOLiv9eDVPRin7 prtThu86pU+RMyxgDF9t0rO304qTCVXtZ3yuL8O1g1DGEBp+aCIaXvpBW2CuxUO+ BCVCmXDNrGHIx7ZS7ZVs/trKfFOROvdkxLcLnAILsM4636Orjw== =zfeV -----END PGP SIGNATURE----- --nextPart5766660.gleqY7jeCr--