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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 21894C43460 for ; Thu, 20 May 2021 08:36:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F0E6761261 for ; Thu, 20 May 2021 08:36:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230489AbhETIhk (ORCPT ); Thu, 20 May 2021 04:37:40 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:36967 "EHLO wnew3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbhETIhj (ORCPT ); Thu, 20 May 2021 04:37:39 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id ABA4B1B83; Thu, 20 May 2021 04:36:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 20 May 2021 04:36:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=o1DjTJWgM6tI8DPk/ukCWHIxuL5 WQ36Hmn4F+Omn2gE=; b=EfmBFZJuVqarI01IkARBLgCBP3+Qh/TFv6j63ajlXbQ bM6/QY6OvpXS1wk/45R5vqwuJBCAcFWNlIt1Nr30FLEjHOilrFzwY13HwZGe0re8 jdPC4Wkx6lpVGBZmzPjLn+tP06g/FjqbGANErugpgGOQUyn9ynuyPAcM+hU5blDQ Ap6YdBE+voi5QIqjhDXNoxLsqgdSVOXuNx/HRv0wcQ3gAthr4EgHzkpxCpCVs5Mx V+rkxFZi5QceZxbE3+kWyznZXsrtj465Mu5Xv/lJ79qolQU0pQgCxcXZLMy9Nut9 U/DoX/runOqbbPT3hGQJnUJ7Gw2SeIauakR9lvKuMKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=o1DjTJ WgM6tI8DPk/ukCWHIxuL5WQ36Hmn4F+Omn2gE=; b=g51lblhwEGgxy5aYP5QYY0 RSY7SZy1C/Sv2PxCcqebXyt3w8rrP6CtRV328Dwu9c7jcF+OHN7aCN4/DWkhzSvO 4SOz7EIOMwuorL3OeYjH4K10JeZvofs08OQ0VBVrISsldL/piujMRb8hnGW4roxh aPvI40KB0hKrjL5DBdCiY2cLyTM4vrD2ut4VXp8t9cu2I/M0hSEG5/wM9U7kopKv 3YbhdLurZczgRLMN51x1/AUZujUK6UPn3WZyu8hNbuUgp/5wupm8+M1aJTz+1rzs caWNfo1ECEDcZ8hcPH78DVl7Ux+yKeevshuXADUsispV3cOtjtou2LubSQdJixDA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejuddgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdortddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeevhefgje eitdfffefhvdegleeigeejgeeiffekieffjeeflefhieegtefhudejueenucfkphepkeef rdekiedrjeegrdeigeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 May 2021 04:36:16 -0400 (EDT) Date: Thu, 20 May 2021 10:36:13 +0200 From: Greg KH To: "Matthew Wilcox (Oracle)" Cc: stable@vger.kernel.org, linux-xfs@vger.kernel.org, Christoph Hellwig , Jan Stancek , Dave Chinner , "Darrick J . Wong" Subject: Re: [PATCH 4.19] iomap: fix sub-page uptodate handling Message-ID: References: <20210517165724.3150255-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210517165724.3150255-1-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Mon, May 17, 2021 at 05:57:24PM +0100, Matthew Wilcox (Oracle) wrote: > From: Christoph Hellwig > > commit 1cea335d1db1ce6ab71b3d2f94a807112b738a0f upstream > > bio completions can race when a page spans more than one file system > block. Add a spinlock to synchronize marking the page uptodate. > > Fixes: 9dc55f1389f9 ("iomap: add support for sub-pagesize buffered I/O without buffer heads") > Reported-by: Jan Stancek > Signed-off-by: Christoph Hellwig > Reviewed-by: Dave Chinner > Reviewed-by: Darrick J. Wong > Signed-off-by: Darrick J. Wong > Signed-off-by: Matthew Wilcox (Oracle) > --- > fs/iomap.c | 34 ++++++++++++++++++++++++---------- > include/linux/iomap.h | 1 + > 2 files changed, 25 insertions(+), 10 deletions(-) Now queued up, thnaks. greg k-h