Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1613503pxa; Thu, 20 Aug 2020 16:13:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW54QQN0/3BBR7lLuI0YyC7Z6JDVYWW626svweFZDwzYeKIP7FxOTw7wlbDwX4cGqo9DhO X-Received: by 2002:a17:906:b59:: with SMTP id v25mr224649ejg.436.1597965204636; Thu, 20 Aug 2020 16:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597965204; cv=none; d=google.com; s=arc-20160816; b=biRkjQJ49xO6ZxL1VbB+KhkECj9IzXTqAfcrWGccBN2jnflrDjG852OB8z5dejqLJ5 sDv2MjyG6F/kvcqK2pyeC12OKbj9pGv3l18NKcH+/XowNbaN8IyO/+7SzpdzZM76Qon8 sByJPv9bzWofcMHYwKFDS1WZFzsYOcdoEtt/9b+Is4PJWXo/b8g5Lpq+gRsgABqdLA7k o9IJxSAb7hiWfvWSF8dxJ6ptscLxKfxlWqAiZo+YKrFdsfB4VTlautpFnKwf6UJ2A1or AY9Va5B/tteRtZPmIPJl2stKc3C/lhCkj43G0rvbHod1ot0CEl2VsnqRUuRNlTy22WAu GO0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=cLXWMIY/pWvk/R4Tri4tLNCzcQu7+iTVWzsvsBSm/Xk=; b=Oy6LXnkJryv8CTdKrjBZb44zeOdnfiPtJRDJevJwT8f4D72PnRN2AcZxY4VCVZhI63 Z9QsHMzmgwhRdlvujLasvHOyCXHrnoqOz2Mej02hAocAOea+ernPX7vsjvMscLNfbd/A 4zFFUC5xXTM4lOl+wS2gQ+U796qRxGsT/prCFAAOA7M20UPRHjHBK6vbEKLbQWo7hOPp 64s4rZLL6D7k0Ps49t+5+yHhpsrgsI+HECWpIzEN8E25DVJRXTi7eD0xbh11I0SEd2v0 4i+FogQsHWnGD4LF7WlexEk8fcECReyWboDqVG4BkJTTMLigrR0lQQljpBYo08K7Ldxi /sNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf13si2199707ejb.179.2020.08.20.16.12.44; Thu, 20 Aug 2020 16:13:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728590AbgHTXLp (ORCPT + 99 others); Thu, 20 Aug 2020 19:11:45 -0400 Received: from mail108.syd.optusnet.com.au ([211.29.132.59]:50583 "EHLO mail108.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728368AbgHTXLp (ORCPT ); Thu, 20 Aug 2020 19:11:45 -0400 Received: from dread.disaster.area (pa49-181-146-199.pa.nsw.optusnet.com.au [49.181.146.199]) by mail108.syd.optusnet.com.au (Postfix) with ESMTPS id 12B711A96D6; Fri, 21 Aug 2020 09:11:41 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1k8tie-0007W7-9n; Fri, 21 Aug 2020 09:11:40 +1000 Date: Fri, 21 Aug 2020 09:11:40 +1000 From: Dave Chinner To: Anju T Sudhakar Cc: hch@infradead.org, darrick.wong@oracle.com, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, willy@infradead.org, riteshh@linux.ibm.com Subject: Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend(). Message-ID: <20200820231140.GE7941@dread.disaster.area> References: <20200819102841.481461-1-anju@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200819102841.481461-1-anju@linux.vnet.ibm.com> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=LPwYv6e9 c=1 sm=1 tr=0 cx=a_idp_d a=GorAHYkI+xOargNMzM6qxQ==:117 a=GorAHYkI+xOargNMzM6qxQ==:17 a=kj9zAlcOel0A:10 a=y4yBn9ojGxQA:10 a=VnNF1IyMAAAA:8 a=7-415B0cAAAA:8 a=QKTNYlJRi8Dho5xtcI0A:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 19, 2020 at 03:58:41PM +0530, Anju T Sudhakar wrote: > From: Ritesh Harjani > > __bio_try_merge_page() may return same_page = 1 and merged = 0. > This could happen when bio->bi_iter.bi_size + len > UINT_MAX. Ummm, silly question, but exactly how are we getting a bio that large in ->writepages getting built? Even with 64kB pages, that's a bio with 2^16 pages attached to it. We shouldn't be building single bios in writeback that large - what storage hardware is allowing such huge bios to be built? (i.e. can you dump all the values in /sys/block//queue/* for that device for us?) Cheers, Dave. -- Dave Chinner david@fromorbit.com