Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp208091rwd; Mon, 12 Jun 2023 12:16:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wHgnIOvqGO2g4F7bxCGLmiMdTeAwAiFebEVoMzBEXDdQMsoxy088Cab+yncVwYNDwazYu X-Received: by 2002:a17:903:1d2:b0:1b0:4934:88bc with SMTP id e18-20020a17090301d200b001b0493488bcmr7731186plh.47.1686597373355; Mon, 12 Jun 2023 12:16:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686597373; cv=none; d=google.com; s=arc-20160816; b=wINM7ZFrYXr9N7P04RV1lKFlIGF2mJbPJU3s3vhc4l28tYE0uU695RqhqGHx3Oz/EP U7iKeiu/xoCEsS30IEDp+udxut7PEfXvGcdNZvcMqBVBn/Vh3rwhloRZvFH4XuagpTLD Tuw7FSxrhwYlJsOJIjelgonlgfwxDce/QZ9X3JUJhv7aV/0edEjGoAahJIisiQq2AKbL 1LLA6WWJ6dnNEaN7mVnojG6pph3AgqhmjmzfTLLsfGjsecx+DNS52e0VA4E6T/Ket3+X O4teB57OGDDkz4S0PpBUlGoh6FHyoAojYrnliSHVLosBLTExNC/cyFXYp3GF1LwW9MMW Jafw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZmIquouHkn7x7g5U3IKxu0y2ezu2hrVL9nMe9oPXqp4=; b=rVme+i5k5OCjk9SukOz5P4ucSeDmX+CIca7l+7KQ3Xvr+oyhDiJDYgJyYUpDFXcueC vlZ7GsBaOvMzjWh5DEtrriRqf29qmMrdN8bENYIJrPBZZFeb61jHMlsvkfIWuIL+Af5v v403C3DcsZqEeRV2ec2O94t84algJKWP59AVYWkClAp1HYMuyCQ8/dNmtT0lxzFd+qIs oOo07Ed1fhKMl1s9Nudm3VtdRPc7DV8vZWrBI11I0U7hj9kRk/oDRATkT1OzbS6SYWG6 31rSZh8uzFR2C1HEsPhCLf/DrAHACUkyiGRPM2SYsElQd0B2q3HWvk6zYY/e1YB+JS0P Hz9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LcDgf3QM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a170903244e00b001b25c006fbcsi2538225pls.99.2023.06.12.12.15.59; Mon, 12 Jun 2023 12:16:13 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LcDgf3QM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236956AbjFLS6E (ORCPT + 99 others); Mon, 12 Jun 2023 14:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232547AbjFLS6D (ORCPT ); Mon, 12 Jun 2023 14:58:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2A9BB7 for ; Mon, 12 Jun 2023 11:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686596243; 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=ZmIquouHkn7x7g5U3IKxu0y2ezu2hrVL9nMe9oPXqp4=; b=LcDgf3QMX/cgLo7n59BV2jOHkdIsDpMxPceWbq2YfaG7bKB02NeKkomZ8Ed9j2S3x7FXvC FynsagUJq4/f7FXObYYtXA/+jCq64XPF6pEzE3RbQekNeQC3BL8VLIyIuDjvxND9bxaQ1P WcmV7Dhw/a1YWRom6jfblJf+/KajpeY= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-384-uz1MCwERNj2yoFF78lnPsQ-1; Mon, 12 Jun 2023 14:57:21 -0400 X-MC-Unique: uz1MCwERNj2yoFF78lnPsQ-1 Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-3f86a3ce946so10532101cf.1 for ; Mon, 12 Jun 2023 11:57:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686596241; x=1689188241; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZmIquouHkn7x7g5U3IKxu0y2ezu2hrVL9nMe9oPXqp4=; b=RSlyW92SOcHqiH7jeN5uhs3+vP9czRyUpOjj2njD4aci6v6ysZeWD7+1t/OQh86onO TORJuEFNxJVWSDX623tX4+cDgyc5SWItqAGAAStx3qpxOlx+brodjrKmlEtmAxZ2sRYZ rtsWLumCDqJ/G2EjlDzeJZA30K8sTZFugG4AibfHnmXKSZZpiC38jgI79dUVYC23rZRy iL15yr5KlSd9dGvZgO0aX3gNqZVcV0ZpxtvnV5Y1QfZjR0qNzBvFOLVaxJZEsZArJTbv 6woHAWnAHNt1mQ4zgJ/BwIE2pzLmDOBwr9nIyyGe/qoNBxiePA3PDgrdtZT3vAU116zX uEYw== X-Gm-Message-State: AC+VfDyKpkEmNrsQtLHimtSjE+Mq54ApnKO+qEeJhfQR8krRLoxn5XWV LbyKXOPWikVjb7qK1CiuJ+L8z2P3P+LhFuRltkgUd4ukkX0/MCHx4ttEcy+SrxXCmht0xhT9+56 Ok0InXoYcXb7bPEtRpewi3/6R X-Received: by 2002:a05:6214:2b05:b0:62b:6c6f:b3e3 with SMTP id jx5-20020a0562142b0500b0062b6c6fb3e3mr12804200qvb.3.1686596241367; Mon, 12 Jun 2023 11:57:21 -0700 (PDT) X-Received: by 2002:a05:6214:2b05:b0:62b:6c6f:b3e3 with SMTP id jx5-20020a0562142b0500b0062b6c6fb3e3mr12804161qvb.3.1686596241115; Mon, 12 Jun 2023 11:57:21 -0700 (PDT) Received: from x1n (cpe5c7695f3aee0-cm5c7695f3aede.cpe.net.cable.rogers.com. [99.254.144.39]) by smtp.gmail.com with ESMTPSA id h23-20020a0cab17000000b005f227de6b1bsm3397636qvb.116.2023.06.12.11.57.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 11:57:20 -0700 (PDT) Date: Mon, 12 Jun 2023 14:57:18 -0400 From: Peter Xu To: Suren Baghdasaryan Cc: akpm@linux-foundation.org, willy@infradead.org, hannes@cmpxchg.org, mhocko@suse.com, josef@toxicpanda.com, jack@suse.cz, ldufour@linux.ibm.com, laurent.dufour@fr.ibm.com, michel@lespinasse.org, liam.howlett@oracle.com, jglisse@google.com, vbabka@suse.cz, minchan@google.com, dave@stgolabs.net, punit.agrawal@bytedance.com, lstoakes@gmail.com, hdanton@sina.com, apopple@nvidia.com, ying.huang@intel.com, david@redhat.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, viro@zeniv.linux.org.uk, brauner@kernel.org, pasha.tatashin@soleen.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v2 4/6] mm: drop VMA lock before waiting for migration Message-ID: References: <20230609005158.2421285-1-surenb@google.com> <20230609005158.2421285-5-surenb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Mon, Jun 12, 2023 at 11:44:33AM -0700, Suren Baghdasaryan wrote: > I think so. With that change getting VM_FAULT_RETRY in do_page_fault() > will guarantee that per-vma lock was dropped. Is that what you mean? Yes, with the newly added "return VM_FAULT_RETRY" in do_swap_page() for per-vma lock removed. AFAICT all the rest paths guaranteed that as long as in the fault paths. -- Peter Xu