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=-6.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no 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 9A6FDC43467 for ; Tue, 13 Oct 2020 03:00:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2440B20797 for ; Tue, 13 Oct 2020 03:00:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="j02dSIEN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2440B20797 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 85891900005; Mon, 12 Oct 2020 23:00:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E3A2900002; Mon, 12 Oct 2020 23:00:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 720FC900005; Mon, 12 Oct 2020 23:00:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0042.hostedemail.com [216.40.44.42]) by kanga.kvack.org (Postfix) with ESMTP id 2283B900002 for ; Mon, 12 Oct 2020 23:00:16 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id A9929181AE866 for ; Tue, 13 Oct 2020 03:00:15 +0000 (UTC) X-FDA: 77365398390.21.pie39_151375b271ff Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id 8DD57180442C2 for ; Tue, 13 Oct 2020 03:00:15 +0000 (UTC) X-HE-Tag: pie39_151375b271ff X-Filterd-Recvd-Size: 2333 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf47.hostedemail.com (Postfix) with ESMTP for ; Tue, 13 Oct 2020 03:00:15 +0000 (UTC) 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=bet5k8jZJNCIYtyLuGWqsrFsH6VgfcTRiIk5ksLeT9A=; b=j02dSIENrMLe0mE57phMNWV/82 PFF/zTfEqcYLzFfFifHHoapFKVgTrLD1jAQEnkh3zcrl8lPKubHdKUXtJWd5IihpyFrv0uMe4NOHu YNH1YbPP1USYuJyvOnsZeOf4p81gPDoDo+UbKmSo+5itwSjFUhRoz94ruEbMfiYH6TsY0sFVdgWlz qCEAJlv9bJjaF6vgkf0FDs/BREd41/vhLS7+dxzbWFCAWgDmG/yRv1XF/Yy5Ff3DMqZE4+Jbewywc Qjr2J1QO8PCvIqjKxjVaeWRuXRsq5UTpITZO9g5csSQ96QTWXioEcHINa0iyUul9/qR2Kmz3I7i5v U6CB2w4Q==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSAXp-00075i-F8; Tue, 13 Oct 2020 03:00:09 +0000 From: "Matthew Wilcox (Oracle)" To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Mel Gorman Subject: [PATCH 0/3] Wait for I/O without holding a page reference Date: Tue, 13 Oct 2020 04:00:04 +0100 Message-Id: <20201013030008.27219-1-willy@infradead.org> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The upcoming THP patchset keeps THPs Uptodate at all times unless we hit an I/O error. So I have a patch which induces I/O errors in 10% of readahead I/Os in order to test the fallback path. It hits a problem with xfstests generic/273 which has 500 threads livelocking trying to split the THP. This patchset fixes that livelock and takes 21 lines out of generic_file_buffered_read(). Matthew Wilcox (Oracle) (3): mm: Pass a sleep state to put_and_wait_on_page_locked mm/filemap: Don't hold a page reference while waiting for unlock mm: Inline __wait_on_page_locked_async into caller include/linux/pagemap.h | 3 +- mm/filemap.c | 129 +++++++++++++++------------------------- mm/huge_memory.c | 4 +- mm/migrate.c | 4 +- 4 files changed, 52 insertions(+), 88 deletions(-) --=20 2.28.0