From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.137.202.133 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796375489; b=kw8ADf9DIt9e8JE0gUxJkiFSL1DjirtBZJ0vyiRfFrb7ZVQMEAmg4N9TfK0ht6DGCiJ9 rL4zxrxSX4Zh5bHgGyhfr8KlnLyOX8WHGGH8BM38+4YLjH+bInrHzlAkCw92qvHKQXMIv tr9axp4ORi+w1Q5bTAbWeCXSBuAYgxhsPkcii8A0y7dYpAofyi3DvAZC0XZcTWDqBu9Ga GhlGBLqXLfH7TN+Q7ICL10u9T6mgdtEhOjTiR+T2vOqv5nGiG/o0Rgos3euIHAA9n4zax ORDnOOT89YxaUlZJrHgnbxvIyiEsZWl/DHtqT0WmS2fIKSSg4k8HvKUIezrZLHAlVUA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796375489; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-SRS-Rewrite; bh=D8NXdjuo1WDA0plbdX1QZXXp0jzgu63FUcWaeM/fwlg=; b=JiRKgzBuywi/FXtZa1z5RE8aodJKbcAnCXGI0Vf4XpF4TPRWZX6V+gWOZhSRRdM39epT haV5gwvZ7D2zfcLvN8QG6adldltGh6rCTkcsgghEZOfnQmo5I+AWk67fPXQ82UDWhnx9f pkogk/25u7JPa8pOkntbIbgNabeCK1igoItAqjPImV0i3bKKZq9VMluRwtjb9RB9gCcM8 RJ8nibdCaK/Tcv40B8JztTiVsw0iv02dYxYGZ4SMb2qhkFouklbRt919LxVRkB/KvP217 qyUunvJNL37guAXikY+oE01r+Q4Gb4NusD+3omTloBGD2lo9Tqk/7KHA2X7jUbpTNaQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=w4OxkI8K; arc=none smtp.remote-ip=198.137.202.133 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67A65606A32C; Fri, 4 Dec 2026 09:11:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 67A65606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=w4OxkI8K DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=D8NXdjuo1WDA0plbdX1QZXXp0jzgu63FUcWaeM/fwlg=; b=w4OxkI8KljL0R3K0IgzucYnXeR tclnr2Lb0ChdwrYzOR9FS8Po9rxXnBSSwDkwBlXDgv9KZBBfkdNbwhpQZEeir8iGKIjjzwk19MLwO h2npzm0Io3UcgSs0c6SEWurtSb6ryzK5w83pGJOC+eYrkVdmOihSX6FSFic8ZST8SVXa6+xcwbmi6 3wCTpN7XffWgMOABaKB/N5pHxJMq/RflZiAmg1hZ923n/wAJtg+0hG9mUs9CK/Q3nacQnp62IIpms MYT/ZVkWV6jVtWq98T5sDX6i5k5gAPoFLu8T7iFVb7KWLqINWEGT4Khh0HsQPHTProHt2BkYvsJel mBSA8XQQ==; Received: from 2a02-8389-2301-9f00-1d8d-b225-bb4b-bd8f.cable.dynamic.v6.surfer.at ([2a02:8389:2301:9f00:1d8d:b225:bb4b:bd8f] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZPKB-0000000HIvV-3aPZ; Fri, 04 Dec 2026 09:11:28 +0000 From: Christoph Hellwig To: Christian Brauner Cc: "Theodore Ts'o" , Carlos Maiolino , Fengnan Chang , linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 1/2] iomap: don't call sb_init_dio_done_wq from the simple dio read path Date: Fri, 4 Dec 2026 10:10:55 +0100 Message-ID: <20261204091101.2533591-2-hch@lst.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261204091101.2533591-1-hch@lst.de> References: <20261204091101.2533591-1-hch@lst.de> X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Since commit bcb0d867a601 ("iomap: use bio_complete_in_task for buffered simple dio read failures"), the simple read path doesn't ever use the per-sb dio aio workqueue, so don't initialize it. Signed-off-by: Christoph Hellwig Reviewed-by: Fengnan Chang --- fs/iomap/direct-io.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fs/iomap/direct-io.c b/fs/iomap/direct-io.c index f00b0841fdd0..0d6ce1a30b2c 100644 --- a/fs/iomap/direct-io.c +++ b/fs/iomap/direct-io.c @@ -1001,13 +1001,6 @@ ssize_t __iomap_dio_read_simple(struct kiocb *iocb, struct iov_iter *iter, goto out_dio_end; } - if (unlikely(!iomi->inode->i_sb->s_dio_done_wq && - !is_sync_kiocb(iocb))) { - ret = sb_init_dio_done_wq(iomi->inode->i_sb); - if (ret < 0) - goto out_dio_end; - } - trace_iomap_dio_rw_begin(iocb, iter, 0, 0); bio = bio_alloc_bioset(iomi->iomap.bdev, -- 2.53.0