Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1000018rdb; Fri, 16 Feb 2024 02:04:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV3XL9ZRbqALM96I3CoPrcEsnN5y6GLWH/eENY/Rb0hZ7krjiniXdVb51KpHWrFi/zELiXxXUXGjJ/FMEXDadlno4TW5rRdpA5NexthWQ== X-Google-Smtp-Source: AGHT+IEvvmiO7endeVxYNp+sgkqu58/eZcCdp8wp07ooOy672UISmpUzvwPCp/0U6mpEVHCUy4xo X-Received: by 2002:a05:6402:1487:b0:561:54f6:4467 with SMTP id e7-20020a056402148700b0056154f64467mr2985528edv.22.1708077887056; Fri, 16 Feb 2024 02:04:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708077887; cv=pass; d=google.com; s=arc-20160816; b=MM21lnHfVUcjLm9IB9X/tIzHVzHFlGMuIj26niTPIx2rSMM2jwUG/FM3q3OtVYeBsq 1N2TH5d5v18pBNayGQFwQ6sBw4xY52R0FsyABrdO1XvQr3o1t1G0JcNuI4bEAVnENL+O MGwW4ZxP/q6HJdopGCzMKRuxmY+sowJ1bDyJ4Xq2XXPhMAwjLdRqrSp3bKfYPZjOBhpY QiTwnzyB52lPKWhtP669EfIcdF/rJK/cNKvAaaTnxrq0/JPpEHPAI+w18B4heXQvs/n7 yavAGHJOMS4ftf7hYRObfO1vUs04Yo6YaqP7uV1nBH/drxfv9P5XrcMrVDIJ02fuFIZQ mcgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=9+r76o2JwpW191mB0cdSBI4QA1SjwNLwOUYY+I3l0fo=; fh=1pMZYJZ6dnVgTd5kIizZGdw15obNaADt2N2sr74huX4=; b=xgQMMHrerCYwYpeAK9Du+v8eG5BxdwseYLNJM0Wb9MVRvIP5pZ60XloSzvw/6yXmqF rDINSGdypM+4+1XPMX+j/TsaOL1x39tHalkFyKYZg/lhmJRU+HApHMByP4ylZ6piGq3X B1k5mfoedc8o7fsIcqaZ2PyBcAY/reg7bTvkLrBv26gQOfmDYlGqA3vTfj1866Vs1h/N WsNicBDv9Avdua3iYxKgZq4ZHb12EklxkaAmdgfguScZbwL3p2ZwWhBLXZHgRoy0F5MN Csk+tEbSk7sETy+DKyKD7w+gcHC08lgS8/RYftIZFjy8jDiNEojPDqpjC9SI/hyadp48 b8Dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="KeIvPRj/"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-68408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cx14-20020a05640222ae00b00563f2aa7a41si352222edb.623.2024.02.16.02.04.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 02:04:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="KeIvPRj/"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-68408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AB2051F210ED for ; Fri, 16 Feb 2024 10:04:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B61741C287; Fri, 16 Feb 2024 10:02:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KeIvPRj/" Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 376BE23750; Fri, 16 Feb 2024 10:02:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708077735; cv=none; b=T/gI8yY3rTB2MshOEnu4GFlH0UEM8fLo89nAiQkmz7qkUrMvmf7XBpklckNXms/vP6ZKl+dBsYPKY/lQiNz8wG7rWlkZwXyo6ICz+VD5AJJIQKLKmLpVOJQyX2nNa7PrO7kA8awWk9+4mwatanJ42VL2UEal0TiHiAqaq1qZWGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708077735; c=relaxed/simple; bh=O+93pBFgZM/jk9pzYDTtxeiT8dZVqTKFySwAmt2XakA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=az27yt9PfFwrF6qe8Lpxi5wwO2M4PTnZtZ7okYmQWzoNa/oE+/E53Eu/ISg25DkSIyQR3cXSfUs7PiePncYEKR7YltLPvCRXZmirqJy5ZxRq6F5bP84pN0jkjf1/+akKvhcJJ/IS3VlFVO+Y2eePEV0MXE/qauV/AX6TAj1wAOY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KeIvPRj/; arc=none smtp.client-ip=209.85.208.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2d21cdbc85bso2699361fa.2; Fri, 16 Feb 2024 02:02:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708077732; x=1708682532; 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=9+r76o2JwpW191mB0cdSBI4QA1SjwNLwOUYY+I3l0fo=; b=KeIvPRj/WY1h4bnALycH99ZKoFW1FVdoMvbQC/yJ78v3UMQg+fRS5D2t0Jk4NOAAp0 8YgmvLR3HQwG273oqu1/DqwildpKEJ7k5rGp/pnNctlNCCnE8ZMCZJnDQWNLxIXYi99s SUfqLHQm/gf+oopZaHGCXrcU4XpMxFuLSsSjtYzTgc1bGu4BggEV4InE3aowD9ZgIJAN Z7kAtF+PVKmSUy3ZE2lKT/Xu4Iq6Rq3PQib/ckqoFHmVmmDpzrbJXNhI6hUs7UVhPi6U qjsYtvfKa+fJDu66MBf7ct/kDssETgB3S/f2AoKLqPw8f6k8/zRiqEAPzNo3PfVOvo2Y XQCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708077732; x=1708682532; 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=9+r76o2JwpW191mB0cdSBI4QA1SjwNLwOUYY+I3l0fo=; b=UWdAFo/M8cJHKumaBZn90BvsahwF5qhWZr6a2qFn6H/ELpdGV7MXLcMpZOZGbEFprk JVvqM4mpeh/1rDoBgeMO0zN8b79bhd4NhPT4Dz5VN8HaVxNN4ROH995RcBePbi5pTBZ8 rZdXbsV8TwSMahNeQIv7m6VLqBENtS7FqdYiDT+VbeSnxpBK5ABx0bHOXAAT2BOPP55C BOdch+w5Sg+qDaK3XqjOicc5iLvEQwO4BWZkE9fgyoKz2QL1WFOIoG/zxDANxSiCmR/M TjBXtoM8yxIAoYRozKP+CegpasHPjc5lmQIC59zNfKyZ2W+Ud2gxW31VyEN+GmgBg+vz QGiQ== X-Forwarded-Encrypted: i=1; AJvYcCVC4OrNQ2HUy5/4QZ3QA1Q54G1+rPgLAHDE/zpoS7hvOenPDfrIYsZFl4OJ1WX4CpR9CMwCibq99MUlxSKy/pnwqVyl+DNkBDEJ4TU6nK7aK6BYfH9GA9B6LxG8cdsOxygyMRQa X-Gm-Message-State: AOJu0YweeoxSYuZYu/aT34L91D456fTceKHjksilk+09VWegmdsNG97w 5Pj3IkYsKUA2G1a5ZQq4iZKi041HEgKxwm/uvusvcTSSYQ23eckIGWwn/7HPHUIatypYiY4mLNT NATzrd8kYbH8SvRPLgyyHVVLkP20= X-Received: by 2002:a2e:9214:0:b0:2d2:a27:200f with SMTP id k20-20020a2e9214000000b002d20a27200fmr2584021ljg.46.1708077731548; Fri, 16 Feb 2024 02:02:11 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240206182559.32264-1-ryncsn@gmail.com> <1d259a51-46e6-4d3b-9455-38dbcc17b168@redhat.com> <4c651673-132f-4cd8-997e-175f586fd2e6@redhat.com> <20240215145836.6db8f62824e1547f0608591c@linux-foundation.org> In-Reply-To: <20240215145836.6db8f62824e1547f0608591c@linux-foundation.org> From: Kairui Song Date: Fri, 16 Feb 2024 18:01:53 +0800 Message-ID: Subject: Re: [PATCH v2] mm/swap: fix race when skipping swapcache To: Andrew Morton Cc: Minchan Kim , David Hildenbrand , linux-mm@kvack.org, "Huang, Ying" , Chris Li , Yu Zhao , Barry Song , SeongJae Park , Hugh Dickins , Johannes Weiner , Matthew Wilcox , Michal Hocko , Yosry Ahmed , stable@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 16, 2024 at 6:58=E2=80=AFAM Andrew Morton wrote: > On Thu, 15 Feb 2024 12:55:11 -0800 Minchan Kim wrote= : > > Only concern of the approach is that it would be harder to have the fix > > in the stable tree. If there isn't strong objection, I prefer the > > Kairui's orginal solution(with some tweak of scheduler if it's > > necessary) first and then pursue your idea on latest tree. > > Do we agree that this fix is needed in -stable? For some reason I > don't have a cc:stable in the changelog. > > I'd like to move this patch into mm-hotfixes-stable in order to get it > upstream very soon. Are we all agreeable with that? I don't have an > Acked-by: David? > > I have a note (which dates back to an earlier version) that Barry would > be performing runtime testing. Has that occurred? > > Thanks. > Hi Andrew, I think this fix is needed for stable, I've sent V3, if we agree on that, please consider V3 which includes changes we have discussed so far, thanks!