From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796230271; b=pWsRWx6cBqkhQnWJWxmk/W4yNAgPHIW8Twg0nManPVVu1JDK61nfsGygQCTRbRrTKBYa PGTdHLZaKte4QcvtekBhiM3qXiEnQGWbRqxTZeNHp1V50j3l7v2lJp18m6PW0yrY4pStY uOPS+bcoVEY/uBFBgS1e4wKMbqj/yWzYtZzBGmONasCELA1EybCyQbcYzifQYJVYC1BZt ALWX3vP3s+T2fIfx+QMb0Azz9iq6kF5b+gU1G2FdwrtL/X0kDTxp5o66EhIwrQ1/ucvll 8k8g0h950DLfqUtQG4DunS3A/+4shkOaKpVYwIj1noKk/mja2ZZynFEZzbvk5OIisjQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796230271; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=UMQbUU0G51rvFvHutYzTZZ016jZFRFVHR7kWZt9BUfY=; b=jUWGqlHw21ygvo7lIiphbkcpqoysdfDkz8IlKA+49y+9v1F0dLhQuO06qkSKACvGFDzV VAAWjg79twGKhuhfxphgX0xgpoLF8PYCnFsU0z2UC2UHh7EQ5WxexHeeISkt7Mac2xQ3U iF61E7vuTGBYeRk+Ii+zgY7vetd/qoTdNvhWGO7hK/YJudB4VhuPcirBESatCGOxH2ttk NiLwEWvfbf/q3kbXgu+Z6WTJ2rsZRxok9eN1CxBHNImkV/ud+ql3AlUKeHw168bThJAXz LqFrv9rEJSfZd77ckbzrzPffXidAWOoxxGBZ+XhjVmvPgnOYmt1DJFa3T7j+VXtEhxA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 273C2606A31A; Wed, 2 Dec 2026 16:51:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 273C2606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 1BF8A68BFE; Wed, 2 Dec 2026 17:51:06 +0100 (CET) Date: Wed, 2 Dec 2026 17:51:05 +0100 From: Christoph Hellwig To: Fengnan Chang Cc: Christian Brauner , Christoph Hellwig , "Darrick J . Wong" , Ming Lei , Jens Axboe , John Garry , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [PATCH v2] iomap: only poll direct I/O that is a single bio Message-ID: <20261202165105.GA7048@lst.de> References: <20261202121922.1633960-1-changfengnan@bytedance.com> X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202121922.1633960-1-changfengnan@bytedance.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Dec 02, 2026 at 12:19:22PM +0000, Fengnan Chang wrote: > @@ -729,6 +733,7 @@ __iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, > dio->error = 0; > dio->flags = dio_flags & (IOMAP_DIO_FSBLOCK_ALIGNED | IOMAP_DIO_BOUNCE); > dio->done_before = done_before; > + dio->wait_for_completion = wait_for_completion; This double assignment to dio->wait_for_completion is a bit confusing. What about killing the local wait_for_completion variable in __iomap_dio_rw to clean this up a bit? We can also do this as an incremental patch. Otherwise looks good: Reviewed-by: Christoph Hellwig