Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2635905rwb; Wed, 30 Nov 2022 08:59:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/m0bw3OZf+xgGi+JqPY5xQ7qvYDcxi7Ng+Sd5EtH9ySQcGUPMcYMP/BEvVzHdsjNItG2z X-Received: by 2002:a17:907:9190:b0:78a:52bb:d904 with SMTP id bp16-20020a170907919000b0078a52bbd904mr35627896ejb.630.1669827546818; Wed, 30 Nov 2022 08:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669827546; cv=none; d=google.com; s=arc-20160816; b=OoZ55l83xAEWaUWDyQvZI8W6iqgtnV7kN12rT3RWrBIo0u+MmeU4jSNTvJ0cE2/CsR VGP4DV2dqUkysTcMM/2YJ9tNObXoU8UXgjUe7EXhOOEbNiU66WN6MlC6ywUhHMyYhO+S N7ipBVSF3ytAucGtIdZ4pofr8GE+qyVDnqxl6JKLa5Wio7zk8djqcRhUKUex4LEkGslL MFZvBgqwwErlQHGcRwJFZwxg2DLMrJYnhmNJeTdigaz6axyfCzA1O2AGDQDfh4YKDCQ1 T2L54Kk0obsS0CayKXGXU6TlEgPEseO/Axx4x225RpNaG0sp20e5oeQRoq65f/867pss NCdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=Yi3iYjfficMani0DB8DcTg/Hfupkks23yn5B9RYsXIo=; b=YuviBAXsCgyWmrt5X55qLI1xEHTiISHmnKW9Tv797clByOA+TMsNpzyvY/CsEY1n2t 9IjfJePyfULnacTuhQgFZXkrwlyq49qiw9kZjlj72dwRmIvgYTbRRFvLnl4bJ89mrsGS TyiPW+dS5V959K2maotx9FK2PGSMAYqPWi9VmH3NBu80ORJAW9ZwKHxkRyTtYBW18DbK zwGdj+MlAvUw3uUm9sobYAw+RaRj2TJNyO4PLGo546tVzf+hZWKIJJFRwvaqKMiZ3OHl weGTSDm+vIi74A0PUMpM9aqIuijBLBTg2s9F6N0psTJGMP52BYskO311NH21+wwon6G6 /BVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=rf2Qa1IG; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o24-20020a17090608d800b007aae0b30283si1370632eje.691.2022.11.30.08.58.42; Wed, 30 Nov 2022 08:59:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=rf2Qa1IG; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230295AbiK3QgR (ORCPT + 99 others); Wed, 30 Nov 2022 11:36:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230294AbiK3QgL (ORCPT ); Wed, 30 Nov 2022 11:36:11 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BACC0880EB for ; Wed, 30 Nov 2022 08:36:10 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 628851F45B; Wed, 30 Nov 2022 16:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1669826169; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Yi3iYjfficMani0DB8DcTg/Hfupkks23yn5B9RYsXIo=; b=rf2Qa1IGgG1gdU46qPM5TQi8ClqO5KKAKFKLmBpDJ7jUtqVWw33C7euzvQvoOR8aneDdLL PJBXJDAPuhNIS8vhgKFv3+tn0vmZVyhPXFrcgOJ+kW1PWblAZDWh5PjplqNc5SQ3CfNA3c Zkpb3cT86dt9us64jzlYYKHzjq3sdK8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1669826169; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Yi3iYjfficMani0DB8DcTg/Hfupkks23yn5B9RYsXIo=; b=OUH032FcREwwLzeD6858thcz/Lu6z0AysdPlLIP1J9oFZe4G3J2T/8uL5z/JGUbq1VHdso +OWM+b26H5x/8dBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 55FAA13A70; Wed, 30 Nov 2022 16:36:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id mMX7FHmGh2NVQgAAMHmgww (envelope-from ); Wed, 30 Nov 2022 16:36:09 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id B8B30A0718; Wed, 30 Nov 2022 17:36:08 +0100 (CET) From: Jan Kara To: Ted Tso Cc: , Christoph Hellwig , Jan Kara Subject: [PATCH 4/9] ext4: Drop pointless IO submission from ext4_bio_write_page() Date: Wed, 30 Nov 2022 17:35:55 +0100 Message-Id: <20221130163608.29034-4-jack@suse.cz> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20221130162435.2324-1-jack@suse.cz> References: <20221130162435.2324-1-jack@suse.cz> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=797; i=jack@suse.cz; h=from:subject; bh=SXWIF7GCG3JqXi8R/f4M+Ly6lggE4TvljS0LQU2XOQk=; b=owEBbQGS/pANAwAIAZydqgc/ZEDZAcsmYgBjh4ZrIDGPRd0mzF1lfqe9aMuXZRcdsir/ea4zxWav Je7Po6GJATMEAAEIAB0WIQSrWdEr1p4yirVVKBycnaoHP2RA2QUCY4eGawAKCRCcnaoHP2RA2YgzB/ 9TzYQ2afn5VR6Q6U9yaFKZRNC+bR7DoY6cP/lERMz2EMILB5PJ84XZKZJrHHwtQf/bdPuoscBR4VeE H4/18GwVMJxZZhVLUljpuVMWpQualqWPXG19jIp955eBPiYxU5/GP6dOAaK2C1dTIPcJfUQb27zBRs piGQtgBKl4xsHQ6zlaVNowSG7RqKU7dATjOyqI3JjTmPVdCePM2qJbqKCAYlb9kzO0Z/vVtSccu38k edP1mj7IMV0327ya/NwaY0oGTIbaihulZZNyYPu6N2+kZj/0hnTu/so6H1ifwAdfTxIe0gQldbBIjt 0hqUKMn0mCkkY0Cx2eFaWippY6Uv68 X-Developer-Key: i=jack@suse.cz; a=openpgp; fpr=93C6099A142276A28BBE35D815BC833443038D8C Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org We submit outstanding IO in ext4_bio_write_page() if we find a buffer we are not going to write. This is however pointless because we already handle submission of previous IO in case we detect newly added buffer head is discontiguous. So just delete the pointless IO submission call. Signed-off-by: Jan Kara --- fs/ext4/page-io.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index 2bdfb8a046d9..beaec6d81074 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -489,8 +489,6 @@ int ext4_bio_write_page(struct ext4_io_submit *io, redirty_page_for_writepage(wbc, page); keep_towrite = true; } - if (io->io_bio) - ext4_io_submit(io); continue; } if (buffer_new(bh)) -- 2.35.3