From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796214966; b=hzc01GjSaU1WF6xpjUUqkQqoG47zg5aD2dyP/cAY/FySH6n93PVJUp7dBSA2C9VwPmKz GOFvxJbRh2M5fQzk1WpoIizbXClfBf/yAVJgkvsbswMzNKtwNxE8KffWMWslvyKdXOQz5 OztFL6zjEAaXjGuvzo96aUixepzXTfa3Pqsx+0hQ4EcWsQRiI32tfes6PPDZ9gGRcjuD+ 0ZMNJ6hrKdI8sl06/HoL3jLQs3YmZyGDq2w/YJ4sOtcOpbTxwJK7MdM+9/yv7CWmQFu++ eEi8V1OBbYG4/YFDy/AtuBdv8eTv0LnBtn0G1ZLYUjPXUXSfVQKfYQhFn4YA2w9bQ6A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796214966; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=tqLzevXTehPzNo5F+NcaVJvxb3xIwMQku9jbCFDHEjI=; b=KuybOw+Y01VcRWQdO5FbCOHbrY0bR+OxsB+Sznn89BFaas14+y5Cd4jqAPtmQ3CLTQIv IOIKbt6NGlcNUIJPJ5huBUc7BI9aqJTUl9nYvCsNw040T2dE+Lnjmzl5IM5WjAvPtcj5e vefgAvcAkCSdZi+TAIbXd79mE7rOMpKYJKDGUNI8ObiCpAb2IbJOWpPLdPLRJirH+wUXV tZQHmNBRXwQZUHXwY78dsWYMmpx2IPukWte5WD3G/AP8IeQtYdQ6fjyVGQSoIreAmCN8/ JD7RSS7Gaw+ZSdIAZv/LYbAhCweX4GU6fOrGgm/A14+5Jv7GvCIZukE7A9d7PsS8m2g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GMJVqUWA; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48B7A606A327 for ; Wed, 2 Dec 2026 12:36:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GMJVqUWA Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E5761F00899; Wed, 2 Dec 2026 12:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796214965; bh=tqLzevXTehPzNo5F+NcaVJvxb3xIwMQku9jbCFDHEjI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=GMJVqUWAPCUFle3ajjNR+cJOZlvJ3we+Qaq1/y3jrgfXD3JH2nrL25Cu876DWB5P8 M2LMJo84VtvdWm/WS29eytTx0ovMU7jc7QUfmgzjO1w7d0GR9jHq9WIQ/WBw9cB3F4 q0+B3zKmZQmWb/ZXatSzBZfOYWED6f1qmZiKWaSax0EbEEYaNyj2dMqj2FeEGqslcH bfysCR5/xxiemJ0Lz/ilyotQ+XTkxTNfLxrQ/i68Y1xjeLsnZMW9slArHDe10AVjom j5YhOHPnwmPxwJvDyntY6mx6EyDQfyE28fjZnTsAja4KEz7A675kCyLmE3XyOTWX8S QTtfT96RzViug== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] iomap: only poll direct I/O that is a single bio Reply-To: sashiko-reviews@lists.linux.dev To: "Fengnan Chang" Cc: linux-ext4@vger.kernel.org, tytso@mit.edu In-Reply-To: <20261202121922.1633960-1-changfengnan@bytedance.com> References: <20261202121922.1633960-1-changfengnan@bytedance.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 12:36:05 +0000 X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > An io_uring IOPOLL ring sets IOCB_HIPRI, and iomap marks a bio > REQ_POLLED and stores it in iocb->private. A polled bio raises no > interrupt, and the caller can only poll it after __iomap_dio_rw() > returns. If __iomap_dio_rw() instead waits for the dio itself, nothing > polls the bio and the I/O stalls until the request times out. NVMe then > reaps the completion from its timeout handler, after 30 seconds by > default. >=20 > __iomap_dio_rw() already does not poll sync kiocbs, and a mapping that > needs completion work clears IOCB_HIPRI. But it can still wait for a > dio that has a polled bio: >=20 > - IOMAP_DIO_FORCE_WAIT: for example, an XFS unaligned write ending at > or past i_size (such as 512 bytes at offset 7680 of an 8 KiB file, > which needs neither completion work nor tail zeroing), or an ext4 > [ ... ] > -g io_uring) shows no regressions on ext4, XFS, or gfs2. >=20 > Fixes: 9650b453a3d4 ("block: ignore RWF_HIPRI hint for sync dio") > Cc: stable@vger.kernel.org > Signed-off-by: Fengnan Chang Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202121922.1633= 960-1-changfengnan@bytedance.com?part=3D1