Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2141989rdb; Mon, 20 Nov 2023 03:18:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvjhLfrKag2skLlfvCOsW4dmJBIA/UhvcuK4wkVgxeLZUhuEsZ+eLID1PQ4XYHVW7ihfga X-Received: by 2002:a05:6871:1c1:b0:1f5:b5ca:438d with SMTP id q1-20020a05687101c100b001f5b5ca438dmr8175438oad.16.1700479118584; Mon, 20 Nov 2023 03:18:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700479118; cv=none; d=google.com; s=arc-20160816; b=LGKC79eew9hY/hyP4Qdn4I/OZDLZkOnEFdq29grCkIAEyGUMrf9PVtyuB8XFHkchgL q7yIRn5hlt6KA3dZvcAm2Ci1l+EZqMmksU1TRDoD9Yv+nFLqGXuSLQ/9oMhr4UfFHbpE uHUL50ujhfv33O6IIaQMgn//AZAOkNwfBfYfF5AxW4s84wmaUIFa4PJzz7xIejadJSbL lH9qfjbc/yIZkJJ0OSIQd5ZlXmlDZAeX62nWDvr9qCHucfe5zDcTdPPfy4oustx3hV90 1Ow1LT+q4Ycc8tmSgOO4pL8A131azp8Vplr+sALk8s2t2FSCnlKmxdLsd3DrBYrR+K0+ KadA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=K8vipKU/tRzejLbedW+j/59TWOsRAP5UuAA6FEDfq9U=; fh=LoiutB1DzRAcGuF/vBlXxwq7aeAo91JWw1TuFponcEw=; b=rDa3j8RlF7lr4/h/uZEZOExmuegTRK5/P5Ce21bLrzjOTJ3QZIflJbbhY+E8V69TBA +zuxUth+ikTLQvdGpY9qiFvMgtLSCuoMvhDWG8tTctqKlA5Xyann+tOPBA9IM3HXhH2A HBXes/JHRtV9q6ZLVMGpwg8JPu12t0RDhzNKNnaPVfrgAfqC2a1BZtcRGLgxwgcWujTG UKj9k+P53uK6CF/7FN98R2IKSnAcAL4CIxAMSkrh8EJD53S2zPNZcJjSWvZlSvRieEv+ 5XurZ1IHqLIGCGlgaq4eF4ecdROk4pdWrWMO9dWckRDDGzeyWzfv2Cszrtax718ugH26 OgNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kQurFkkn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x63-20020a636342000000b005bd2b19dfc4si8294963pgb.493.2023.11.20.03.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 03:18:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kQurFkkn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 18BEE8090069; Mon, 20 Nov 2023 03:15:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233290AbjKTLP3 (ORCPT + 99 others); Mon, 20 Nov 2023 06:15:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233274AbjKTLPL (ORCPT ); Mon, 20 Nov 2023 06:15:11 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E28F0D45 for ; Mon, 20 Nov 2023 03:15:02 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c50906f941so57615541fa.2 for ; Mon, 20 Nov 2023 03:15:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700478901; x=1701083701; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=K8vipKU/tRzejLbedW+j/59TWOsRAP5UuAA6FEDfq9U=; b=kQurFkkniRftMbmUR5OOopyI0zH4OnwYHwkAQx7RH+cyOFl2nOaBl8MFvmcXKKjlVl +H5SnvjJi6S9p5hvmnp9t1W3NCmxm/MEuVetdJZeff4BLE6PHa0nTFcmhjaCsbUREYJi Il2o8A9UmGHNPZDW+ElKzTbm/G57NwngXakQQWKze+276faVVZVF3Ih6q2U+yeWJBqiW JAJhcrc9AobSoEP83vSqhzZYuFURgl+ZyH/JvGV8Bq5OBDDJJR7jh7GFd2OHzoNjM9dj Drk4SkoocZprf6EF1iZoBFbj/XBxuzdqXwtYVc9t7mTt7Yo1D3G98kOmVg0RwcDcrmKS PXvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700478901; x=1701083701; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K8vipKU/tRzejLbedW+j/59TWOsRAP5UuAA6FEDfq9U=; b=OvOv/k7uJPDXUBa1nKoRmboxpAVO0rF4UpA1mYZBPOyEBVX1wpHEjUlijLd/szl1QD bUE3F7d2/QZhmQSwN00wbRxZ7Ex4KJZknQSShkTm8pvGrXZNWWCtuzELQmZcz+xsqSbE 4NfTpf0odpytnCWD+7RDzlnfNrtr3//Q234UUiqIb1AKrA3acX0ARvVgLE3tbk26EimU FjIcRKDDhCL0lEP38a1mC3Wr7H2+Nj8AoeJPTgECYjfOR57Z/X1ooGe5xu6SM7N9gTqg +ayYkOB44Veie729xUzHwVpvj9sQcN1AsAV4KFhGNIaIRyJewXWqikUv4tyeEfEjeVTv 27GA== X-Gm-Message-State: AOJu0YwOdD3Gx1du+2mJGzUZY8k6c+UTXkQgQ1my/+alzKzd3dOp2pOO QjTizhNMTOVLo3Uie3KiMCRYCbFcSpkdzPaJsI4= X-Received: by 2002:a2e:7307:0:b0:2c8:721c:6912 with SMTP id o7-20020a2e7307000000b002c8721c6912mr4184743ljc.37.1700478900861; Mon, 20 Nov 2023 03:15:00 -0800 (PST) MIME-Version: 1.0 References: <20231119194740.94101-1-ryncsn@gmail.com> <20231119194740.94101-17-ryncsn@gmail.com> In-Reply-To: From: Kairui Song Date: Mon, 20 Nov 2023 19:14:42 +0800 Message-ID: Subject: Re: [PATCH 16/24] mm/swap: reduce scope of get_swap_device in swapin path To: Matthew Wilcox Cc: linux-mm@kvack.org, Andrew Morton , "Huang, Ying" , David Hildenbrand , Hugh Dickins , Johannes Weiner , Michal Hocko , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 03:15:40 -0800 (PST) Matthew Wilcox =E4=BA=8E2023=E5=B9=B411=E6=9C=8820=E6= =97=A5=E5=91=A8=E4=B8=80 05:12=E5=86=99=E9=81=93=EF=BC=9A > > On Mon, Nov 20, 2023 at 03:47:32AM +0800, Kairui Song wrote: > > page =3D swapin_readahead(entry, GFP_HIGHUSER_MOVABLE, > > vmf, &cache_result); > > - if (page) { > > + if (PTR_ERR(page) =3D=3D -EBUSY) { > > if (page =3D=3D ERR_PTR(-EBUSY)) { > Thanks, I'll fix this.