Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2325225pja; Thu, 26 Mar 2020 13:17:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvqgL+Q4xyA5v9lcN5XT50QcmQVpQXp23aWHH4MHvkp9zx1cdVXjfgw3h/jFQdot9k+g6gj X-Received: by 2002:a05:6808:8db:: with SMTP id k27mr1594838oij.175.1585253859986; Thu, 26 Mar 2020 13:17:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585253859; cv=none; d=google.com; s=arc-20160816; b=WqgLl78iNgUlNgjmQSWjcUrtS4ZTYxFUIFop5uLnXYQbY8ndEpHwu9pI1tU+/2mvyo rq1mlPpyc3F8OajIt921/4yHMhF+vZsCts3os6zs7DkpyQX0hvZjtf+vBDy32AyLjCaF u436PUzT8ychWf/JLZ0Jzm4+0nxvNHul93F5WspU6cLL1x30E95iqZOh+G9PXjcis0Qv ktPvMnD/o6MTkCBqTBg5ntY0qlT8uqYExFzleNYF8XHy3SlrvTbqb5RK/p2LedVmR7mZ unwQFAfPAzbX9G8yWTjexYwMshWV28GM5t2Aj+BApTcIHhJFynEhlMdf5LdJjZ9CwkKf AC9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=E4dsKws2wqDCwQI3Jc4wCO67tLQMUP6imYVkrCtdzMg=; b=xXRS4nC8f9rRL8TnsuGEbyEvTc7V4F0bNuk7hZKah8efAbg9gz9+u1vahQEloB0IVQ +VSt6cZpwkUN6B335k93npyEm1Ew1vdPC86nwnOOseIr5lJEHDGaSVDo9qCwyS/H2Jd2 WuOgPvj8mMQGNVSYNh9CL8xT8uzHdiedYRNulXwlOS0W/DGSCBHWVKC1DaItsH4mqkfm edWSiKcASqIiSENnvuaHbTAGeFJs70s3ecIq0TmZc0ofC+vnB5NGVmuKa1JXoBSds/kC PR6gJvdkGAV8Roqcral5nwGOteUquiBtAJ4qqqmeyx/9rAmhSXuARuqNDZSKA3IZczZ5 TYfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QK41eXJu; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u66si1478492oib.159.2020.03.26.13.17.26; Thu, 26 Mar 2020 13:17:39 -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=@redhat.com header.s=mimecast20190719 header.b=QK41eXJu; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728704AbgCZUQu (ORCPT + 99 others); Thu, 26 Mar 2020 16:16:50 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:60017 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728678AbgCZUQs (ORCPT ); Thu, 26 Mar 2020 16:16:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585253807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=E4dsKws2wqDCwQI3Jc4wCO67tLQMUP6imYVkrCtdzMg=; b=QK41eXJuyclMHB/+zZ7SrVlgyiHycy/D0R8D7QtbfbA8QPjst+Sfv+vMGtxQYx6QmurDsz pQC4hqmWAiE+wdMBwLJv1+XNpFauwnxQNz4O7zmn9CVsRTKu7i072dzx0YktD2DQaA6SG2 O0c8CH50FS4ez6EarLX9vOZ3R+eU7Fo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-34-iBXLJINDNUORRo0C49Dn5A-1; Thu, 26 Mar 2020 16:16:45 -0400 X-MC-Unique: iBXLJINDNUORRo0C49Dn5A-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 01C1D8017CC; Thu, 26 Mar 2020 20:16:44 +0000 (UTC) Received: from optiplex-lnx (unknown [10.33.36.220]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D2FBA5C1D8; Thu, 26 Mar 2020 20:16:41 +0000 (UTC) Date: Thu, 26 Mar 2020 16:16:38 -0400 From: Rafael Aquini To: Andrew Morton Cc: Michal Hocko , Shakeel Butt , LKML , linux-kselftest@vger.kernel.org, shuah@kernel.org, Eric B Munson Subject: Re: [PATCH] tools/testing/selftests/vm/mlock2-tests: fix mlock2 false-negative errors Message-ID: <20200326201638.GA4605@optiplex-lnx> References: <20200323150259.GD23364@optiplex-lnx> <20200323151256.GP7524@dhcp22.suse.cz> <20200323154159.GF23364@optiplex-lnx> <20200323155111.GQ7524@dhcp22.suse.cz> <20200323155449.GG23364@optiplex-lnx> <20200324154218.GS19542@dhcp22.suse.cz> <20200324154910.GM23364@optiplex-lnx> <20200325174949.95d8a9de61c6a30a7e0f4582@linux-foundation.org> <20200326064909.GB27965@dhcp22.suse.cz> <20200326125809.64d92920bcd481cf15207855@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200326125809.64d92920bcd481cf15207855@linux-foundation.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 12:58:09PM -0700, Andrew Morton wrote: > On Thu, 26 Mar 2020 07:49:09 +0100 Michal Hocko wrote: > > > On Wed 25-03-20 17:49:49, Andrew Morton wrote: > > > On Tue, 24 Mar 2020 11:49:10 -0400 Rafael Aquini wrote: > > > > > > > Thanks Michal! > > > > > > > > > > > > Acked-by: Rafael Aquini > > > > > > I'll add > > > Fixes: 9c4e6b1a7027f ("mm, mlock, vmscan: no more skipping pagevecs") > > > > Wouldn't be this misleading? It would suggest that this commit is > > somehow incorrect. I would consider b3b0d09c7a23 ("selftests: vm: add > > tests for lock on fault") to be a better fit. > > Yes, it's a bit misleading. > > Or maybe not. b3b0d09c7a23 was merged in 2015 and worked OK (afaik) > until 9c4e6b1a7027f came along in 2020. So arguably, 2020's > 9c4e6b1a7027f was correct but incomplete, since it failed to repair the > impact upon the test code. > That's correct, and it was my reading, as well. > I don't think that kernels prior to 2020's 9c4e6b1a7027f require this > change(?), so we only need to backport this into 5.6.x, which is what > my proposed Fixes: and cc:stable expresses. > Agreed -- Rafael