Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1098711rdg; Fri, 11 Aug 2023 09:37:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRgRbq1ePX9WVGvGcIHz9y+5Nm3UDcVwrzdj4En4H7AjLF/wQmtBNXPAZRj7O8V8UNYmdF X-Received: by 2002:a05:6808:191a:b0:3a3:7245:d36c with SMTP id bf26-20020a056808191a00b003a37245d36cmr3405348oib.43.1691771826910; Fri, 11 Aug 2023 09:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691771826; cv=none; d=google.com; s=arc-20160816; b=cWTWk4lW6ZGnOJoGP6F6AD3FWJ9vhvb4LrZUGgCEUnMnojixTj3bX1xyss+IGqkuGb zwXkCsN7WmgejjQkxrZuGFgqQO0lPxcPElPY/lt7qMgIPoCbbdNNh0c8p8XkPzWEFQ/O xC1uWa1iXQTcTqoNXQMsar7ZLbHqgvdZqUX27V6WMFGkoDVoHcYWozsfCXiaRD1CJVTp 7G+mq5nsY8tDog0lL5EPkai2eoiqfZMo4VMTuco4CZSC62zdmN/Z4RA6iH/UZTgU7avH ExK8x3JQMRGvBsF7xK+bXUvUZrAnZE0E87H5+qw7R/bpHaT32NHQgvsdd4tJwBoD45CW +9FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/SgsMibri9UER3bCvfxitKCEIq/eI1Hjbt8i8axvil0=; fh=BvTsPvZmwNzIqPb2bL1VMvtoAQxT1jAJEBJAY1B8Ad0=; b=DetzkWe3YYp4AfakieTsd/W1j2NilrVSCao9ZUk9dZ0eNZR6Pr8TDEjFtaxEfwlVU4 BTr+VhVIMZV2chlLM5DRRghlGjtSZEktHqo6A1am6ZMpAWgWdmYRpCCNQGfQgIAMaznD znjoTGJGf50jpgFqbFkPAtEeumxHaKAodWS2W2lubu28rG6CE+6ogT/6ZhrQM2Ar0N/0 6UIjjx/C2o9jTjvuf/WElpjq4FpPtnhFYrctw/FyOH08d1H2FdzV9/s9JR0NNlPqdDKB vuQP1tgzBNaPaqVN0YyVW3Mn+sjVAjd/IwiUDkRzg7y9h0eM3CE4hDT7aiV/J8q6ZRcw i0Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=rXg+L9Yt; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x185-20020a6363c2000000b005486b0ebbafsi3816653pgb.626.2023.08.11.09.36.49; Fri, 11 Aug 2023 09:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@infradead.org header.s=casper.20170209 header.b=rXg+L9Yt; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbjHKQPl (ORCPT + 99 others); Fri, 11 Aug 2023 12:15:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232046AbjHKQPk (ORCPT ); Fri, 11 Aug 2023 12:15:40 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3DFF2694; Fri, 11 Aug 2023 09:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=/SgsMibri9UER3bCvfxitKCEIq/eI1Hjbt8i8axvil0=; b=rXg+L9YttUI4wMHcDVF5lapTgj Io4fgj7Nqkg9taPr7lHlNxpUkq+13bnMtYfYYcQz0MBOXB56GQUHUTABoxv8U5qEjKgM0C1ypJIJV u94/+DLuitS6Si0GGVILTLORaFKi1wlSzVF+hD2G/jb+AqDqHrPlY4vghUZCqxNF9rq9G3Qdrkb0A I/34BpF8PdADWIiGGjW3ia+pddf8kpVimk98qHy/oMGM50iPb8DSU8NocH4FEL3XkQiMn1Be/S7LN SXakB4UomwPE4MY/LgsovJV/HSvvfKUS4CTTcjO1DVOU5kGSZikrfCKEgxtS2R2SyYnkM5YQNLcYV lJ+A/IjQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qUUnS-0027kU-TC; Fri, 11 Aug 2023 16:15:30 +0000 From: "Matthew Wilcox (Oracle)" To: akpm@linux-foundation.org Cc: "Matthew Wilcox (Oracle)" , Hui Zhu , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: [PATCH 0/3] Add and use bdev_getblk() Date: Fri, 11 Aug 2023 17:15:25 +0100 Message-Id: <20230811161528.506437-1-willy@infradead.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED 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-ext4@vger.kernel.org This patch series fixes a bug reported by Hui Zhu; see proposed patches v1 and v2: https://lore.kernel.org/linux-fsdevel/20230811035705.3296-1-teawaterz@linux.alibaba.com/ https://lore.kernel.org/linux-fsdevel/20230811071519.1094-1-teawaterz@linux.alibaba.com/ I decided to go in a rather different direction for this fix, and fix a related problem at the same time. I don't think there's any urgency to rush this into Linus' tree, nor have I marked it for stable. Reasonable people may disagree. Matthew Wilcox (Oracle) (3): buffer: Pass GFP flags to folio_alloc_buffers() buffer: Hoist GFP flags from grow_dev_page() to __getblk_gfp() ext4: Use bdev_getblk() to avoid memory reclaim in readahead path fs/buffer.c | 75 +++++++++++++++++++++++-------------- fs/ext4/super.c | 3 +- include/linux/buffer_head.h | 4 +- 3 files changed, 52 insertions(+), 30 deletions(-) -- 2.40.1