Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp370396ybb; Sat, 28 Mar 2020 00:50:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuR4Ee8gNBI4VzxCyMcNWaaApPlgXOxKqJn4a8yTNsTct5uBUt0tlH0a7Mq9FS2dQspgkzO X-Received: by 2002:aca:4e47:: with SMTP id c68mr1845509oib.16.1585381806986; Sat, 28 Mar 2020 00:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585381806; cv=none; d=google.com; s=arc-20160816; b=P5VhoOf7d4ijfpDBgQPt2xrb5AeDfsZJm0+yfLFX+Cu+gKBFt4wkS1hamYEDEcLBde 2gU3yu1jFs5V3CkNYvpycSnJhQNDPdbxaWkBscvClcCr0pRPpRygSKuz0cLfbKlDzmPq mJfO2aLMGYVnOhoHmPiclDUUakamhY9w4q0ueevU+Hb6SizvSZYkiBsHdLoBQ6Dc56Wa xKbc9uWXWzYB8ypexnTf3ZEzZuiM8x6AdL1CsHpNt6ys+QN/vZtZZ5BWrfJrhKmnGkrr 6QiD3xddY8QNcUZfi9tX8eZCfE6nKW1N7tIWNtDowC2RZx3z0ZLzDAqIOKx1V99GAS2n +DWg== 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=9jl+BpbHZ/7r9CkbFROQ9el447QHzytPcgY1mfe7n2I=; b=AqAguJxPU7i21FN1Plx+g4in+OEHZ/tkvwBmeHm01NF1kHsT4o5lHknmokIWFi3YbN YYbgPjzdlCfqVAZtT+zbAplMOkdePlaHJKMlcsN4oKSjbJFOxmZgKinJk/iRylZGTpl9 Z5OFUlXvvLq2mL7jHBS95yUfN4oj16ChZlFQclmzvQiXwlh3oJ1QAHq5XxOG2unJpvqC +N21e8kglexwFbjDdYrzZ6ZobC15ubgR6rZRgUO9gWz71+tm741yF86VC8GJTpORKTJ8 i31GHbszXTTADrjuCOeDf5qm+IB2n00DPicZ2TcT8voepkVinfZM3a7T+47dMXu5Jki/ F8Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WOVV8fRn; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t24si3695596oth.319.2020.03.28.00.49.54; Sat, 28 Mar 2020 00:50:06 -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=@google.com header.s=20161025 header.b=WOVV8fRn; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726937AbgC1HrV (ORCPT + 99 others); Sat, 28 Mar 2020 03:47:21 -0400 Received: from mail-yb1-f196.google.com ([209.85.219.196]:35784 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbgC1HrU (ORCPT ); Sat, 28 Mar 2020 03:47:20 -0400 Received: by mail-yb1-f196.google.com with SMTP id x63so5924201ybx.2 for ; Sat, 28 Mar 2020 00:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9jl+BpbHZ/7r9CkbFROQ9el447QHzytPcgY1mfe7n2I=; b=WOVV8fRn0QHeIZLcDiHRypp+CZ74Q7ALHPvHpNEf9Y72LLtBAWPEWhdu1+WfMmSslm UWERIzqxKzdnY73jCAj7ReOrGf9m58xY5hJxs0UaAj7e2o8D0tsas4KPyi2OOFj72j42 NcPNtcWWUeBSr0/fk6cAAnyzC0H1eLxJaBRjwjuZc4J6XKHlXGGVoUX1KsEM0hbZByjM IyS69XD5dopcswpVYiQCH5U4YbxNbvaNyXdpA2Jymn71KM7rMcTt02v5bCIDEmmRiPqa K+m9WQstmHWeSar87A5wR2lcItFBo/9UVt4aYJC3p7uxeZDf6bMcSe5NkkFbByv2Dkpq 0dmg== 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=9jl+BpbHZ/7r9CkbFROQ9el447QHzytPcgY1mfe7n2I=; b=sjuIUBrX0rbdrU7QiCYYCv4P6o71m4xjhXDSsxqZyT1qgDZ8414WeyLHmRX4yeAszE CeAxUvdnHUt3M0OEoqwZ87hTre2wZETzrrriX28hK2UiaNDR4Cb8elSvgvbBy/oafOWn UEw5cMkEPXC/997dqJBuZEWUOorDD3liFJZ7vPvvPj89H4vZFeu/jCsdZNSnvtoAt0/b 4BWbaE2y3dV/T+AsaLj5j2xzQdCx2Nb+K1ke+nyuWIyKZArYepcFk9uxiB4WyTQ+6eia fZCblALZyhZB7elaCh9qpsZlMd7MJ6PxGXAN7XQ4E7Dhgh4P6Sb14xBG75w4fSQr0ldy M7lQ== X-Gm-Message-State: ANhLgQ3lJaQFox3T2xCCsMpPns804Xv34BgFyzk+BXuiVEGnjSG3podI /nyxy5yE7s/o0gDuDdCKDotBYk3VtoAG1BSdxA7iLw== X-Received: by 2002:a5b:4ce:: with SMTP id u14mr1565259ybp.518.1585381638995; Sat, 28 Mar 2020 00:47:18 -0700 (PDT) MIME-Version: 1.0 References: <20200327225102.25061-1-walken@google.com> <20200327225102.25061-6-walken@google.com> In-Reply-To: From: Michel Lespinasse Date: Sat, 28 Mar 2020 00:47:06 -0700 Message-ID: Subject: Re: [PATCH v3 05/10] mmap locking API: convert mmap_sem call sites missed by coccinelle To: Markus Elfring Cc: Coccinelle , linux-mm , LKML , Peter Zijlstra , Laurent Dufour , Vlastimil Babka , Matthew Wilcox , Liam Howlett , Jerome Glisse , Davidlohr Bueso , David Rientjes , Hugh Dickins , Ying Han , Jason Gunthorpe , Andrew Morton 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 Hi Markus, On Sat, Mar 28, 2020 at 12:37 AM Markus Elfring wrote: > > Convert the last few remaining mmap_sem rwsem calls to use the new > > mmap locking API. These were missed by coccinelle for some reason > > Will the clarification of this software situation become more interesting? > > > (I think coccinelle does not support some of the preprocessor > > constructs in these files ?) > > I suggest to omit this information from the final change description. > Would you like to help any more to find nicer solutions > for remaining open issues? So, from a practical perspective I think coccinelle has filled its purpose for me - it got 99% of the job done, and I had to do the last 1% by hand which is not ideal, but really not too bad either. Also, by using coccinelle I think reviewers can appreciate that the change is purely mechanical, and reproduce it on their end if needed, which facilitates the review process greatly. I would be interested to find out why coccinelle wasn't able to do the last 1%, but only as part of a long-term learning process on getting better with coccinelle - I don't consider it a blocker for short-term progress on this patchset. -- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies.