Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp906258pxk; Thu, 17 Sep 2020 21:03:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl5V962+vw4g4zV1RUWdjb0B/h+cQ63jl+lWfl7N5L6Yu8bJ+VEvE5/9jY2x/GJUDrrUUq X-Received: by 2002:a17:906:a845:: with SMTP id dx5mr33242452ejb.543.1600401780388; Thu, 17 Sep 2020 21:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600401780; cv=none; d=google.com; s=arc-20160816; b=wExRIugYN1whk2aGNncbcyBX9SGi9WnsHJblALmoWeD/V4J7kKmimm5vDGmaX0UzPp djgWAwPjOJDHV7lSJt/S0cggKVJ7000WK4g95wjg94Kn5OJboJKdyAgTCzG7UdcXGtGD q6tsjavfg4Au6AYkGULN/MgbUMEd7lZ3RN0s/7ZRESWLMmD+3Y7LWb0BwpHp3pdNY+xX hidl37nl4nQdjOcvDmCm+O2KzTsgd8uXUtWX6XJmrj7OWT5A6sqpVzD4GeM0ghD0D3aD hU3/3A0cNAsWAICY0TGaSPc29JuCRlKeD1IC5JdxYVcKhyAiWHViRTFzJaG85DSob3v1 11cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yqQ3WmKDbBWmnu4TolrzXoVeaW+xc7/FA1Hu1sSodXM=; b=js6WaoUtoikH0vwjYQZXezY11wu6eaqjeNv1nUrKujsk3k4T9cZyMY+4nCY1WeWEvi 68wOIn2PxjGEKUHE7WeNyIxfQmhCu3MSy1iM29jhMUJ866+/qs/s8mXQIgmKhTOcRx+x 9WnmfyEZJaAyr5yQzfYs7f1DJ+Kj8yrQHErNRPiP6kLAgEanEI1yWl7JDZfhZI2LwBid QX1QASl6CDXLneLPF5upeTtcOyFNZxPhsl/T2FrqUFPawvebtwsBVZPzdQzeDFIG2qsG qL26Gx4Y+g9G0fFHpfn1NaF+XhHrtsbdceH3Ozk6sDQVZ1OxNT3RUViSwAIIoT5BIvSr HAfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=Wsu1CrpN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si1233946edt.19.2020.09.17.21.02.36; Thu, 17 Sep 2020 21:03:00 -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; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=Wsu1CrpN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726420AbgIREA0 (ORCPT + 99 others); Fri, 18 Sep 2020 00:00:26 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:53426 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbgIREA0 (ORCPT ); Fri, 18 Sep 2020 00:00:26 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08HLTktu184295; Thu, 17 Sep 2020 21:33:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=yqQ3WmKDbBWmnu4TolrzXoVeaW+xc7/FA1Hu1sSodXM=; b=Wsu1CrpNP6KkuEc4XWwQKhzFCzKY8m9BAeMYM+fUTvk6fnrwaeow18tKsO4fSUIJOT2g kBD42QH2SNR+G31RyL2Vb3bgqewtjwFQ3eJxdJLb/PWuADG6f0MibLt6riQlxtBkUVln cBO6sKEHklxnMOgUD7UiTP3whkJu1rFn1+rzY110w/D6ix6UOooKxjAQZduLn+ZGhwS/ v83nOiJvz+CKtPbyKljQ6MjmfNa5h/VRAXuyob2qhgUAlbQfQbK79/Hj7EiOESiryq2N iS42nKWo8reuaDCPpQKdDC4ZcYktuo0l5Whk92JYoz/CZAkQQkxsMlv1iFmoiDvhYXub xw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 33gnrrbye4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 17 Sep 2020 21:33:17 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08HLVYxU182545; Thu, 17 Sep 2020 21:33:16 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 33h88ch72v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Sep 2020 21:33:16 +0000 Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 08HLXEdA025950; Thu, 17 Sep 2020 21:33:14 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 Sep 2020 21:33:14 +0000 Date: Thu, 17 Sep 2020 14:33:12 -0700 From: "Darrick J. Wong" To: Christoph Hellwig Cc: Brian Foster , Dave Chinner , Ritesh Harjani , Anju T Sudhakar , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, willy@infradead.org, minlei@redhat.com Subject: Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend(). Message-ID: <20200917213312.GF7954@magnolia> References: <20200824150417.GA12258@infradead.org> <20200824154841.GB295033@bfoster> <20200825004203.GJ12131@dread.disaster.area> <20200825144917.GA321765@bfoster> <20200916001242.GE7955@magnolia> <20200916084510.GA30815@infradead.org> <20200916130714.GA1681377@bfoster> <20200917080455.GY26262@infradead.org> <20200917104219.GA1811187@bfoster> <20200917144804.GA31389@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200917144804.GA31389@infradead.org> X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9747 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 adultscore=0 suspectscore=1 phishscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009170159 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9747 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 bulkscore=0 suspectscore=1 clxscore=1015 mlxlogscore=999 adultscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009170159 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2020 at 03:48:04PM +0100, Christoph Hellwig wrote: > On Thu, Sep 17, 2020 at 06:42:19AM -0400, Brian Foster wrote: > > That wouldn't address the latency concern Dave brought up. That said, I > > have no issue with this as a targeted solution for the softlockup issue. > > iomap_finish_ioend[s]() is common code for both the workqueue and > > ->bi_end_io() contexts so that would require either some kind of context > > detection (and my understanding is in_atomic() is unreliable/frowned > > upon) or a new "atomic" parameter through iomap_finish_ioend[s]() to > > indicate whether it's safe to reschedule. Preference? > > True, it would not help with latency. But then again the latency > should be controlled by the writeback code not doing giant writebacks > to start with, shouldn't it? > > Any XFS/iomap specific limit also would not help with the block layer > merging bios. /me hasn't totally been following this thread, but iomap will also aggregate the ioend completions; do we need to cap that to keep latencies down? I was assuming that amortization was always favorable, but maybe not? --D