From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 525ACC433E6 for ; Thu, 18 Mar 2021 15:03:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2418F64F1C for ; Thu, 18 Mar 2021 15:03:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231649AbhCRPDZ (ORCPT ); Thu, 18 Mar 2021 11:03:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbhCRPDN (ORCPT ); Thu, 18 Mar 2021 11:03:13 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F68EC06174A for ; Thu, 18 Mar 2021 08:03:13 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id t4so2299779qkp.1 for ; Thu, 18 Mar 2021 08:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=z7lTVVRuSUfjS6oFurvBuW+lqnBMNQb+/M9MCKQeJGA=; b=hAWWBQ5r7q2qGQHnUkSAaN9SgxOHXzxDQuWPR9UYpiwDv9bKlXuBl9O9bQwvhnecCX V9pMmBkWY/uctykn77aF8/spzsmXw8rM3L1lJxcvgPVmo/SS9Om1LTqmDdxw+UClUl+U PxAWoeJhP4OsOJtOJ3+na7BN9Glh4mTVNyUPNu/gGjoJ8vh5fbhD8H07IOHGxhH7LMjr /V8tIIGrAfHjCGBzUlMuMltFDshNKlOb9J2//RnV6fYCAyAd27Oo3Bu4BbmmqdwkJW4D sh9KvbypBkoy7kBfHZUEhCtnPsonmS0cioBYmureMdgxGY8s8YIfL0vdL0H+/uwAz82k 8e7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=z7lTVVRuSUfjS6oFurvBuW+lqnBMNQb+/M9MCKQeJGA=; b=eAnLrbVQpWcJf0sos0tiY69wY2KjbsdvofHddlyGSOLgHBo0giTZPZJNE/iLPHLIkL jchFDHnxqL1Bn1UJ9CCCnT0U4nq1UmgU5z2fcIaysWsxOvhldjhGCcOsdxZgGCym6Vfg J5jAatT+Ngo1NJaR7upg6Y6LjdJlaOB/dkFJHPjTbtlvu4ZmdXZl8CQZMFrlQ3jGHiBX xvaqBxxrKLk8AdvJwx93ZCBQVSeVCImMsVShedzoIQA1/QCL5kppYEQE8PGuHCDOUzKd tJfN/u+u25gERX78iW3WsYfLo6sXaVAfz03teWDVCMJxwn3FBHVPPUyvV66Y80n6CFLi 2p0w== X-Gm-Message-State: AOAM531OPjsLBp1RasbQhAnqRD5a0NvZUfcF5cieKUGTrvAdvlbzGZZZ a/mktGvVJ4Wy040CAIXhzJ8cnA== X-Google-Smtp-Source: ABdhPJyIgDLaHHCU8sW5eq1vsv7FTz+05aFOuJTSx/oJJ18ACJl8GOweg+N0HKmwfRR5GC3cJg4xuQ== X-Received: by 2002:a05:620a:641:: with SMTP id a1mr4568571qka.257.1616079792499; Thu, 18 Mar 2021 08:03:12 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:e46c]) by smtp.gmail.com with ESMTPSA id g2sm1626319qtu.0.2021.03.18.08.03.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 08:03:12 -0700 (PDT) Date: Thu, 18 Mar 2021 11:03:10 -0400 From: Johannes Weiner To: Shakeel Butt Cc: Hugh Dickins , Roman Gushchin , Michal Hocko , Andrew Morton , Minchan Kim , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Heiko Carstens Subject: Re: [PATCH] memcg: set page->private before calling swap_readpage Message-ID: References: <20210318015959.2986837-1-shakeelb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210318015959.2986837-1-shakeelb@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 06:59:59PM -0700, Shakeel Butt wrote: > The function swap_readpage() (and other functions it call) extracts swap > entry from page->private. However for SWP_SYNCHRONOUS_IO, the kernel > skips the swapcache and thus we need to manually set the page->private > with the swap entry before calling swap_readpage(). > > Signed-off-by: Shakeel Butt > Reported-by: Heiko Carstens LGTM