Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1811617imm; Thu, 12 Jul 2018 08:11:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeqV6dWCa82Q815m0WiNz2wK9X3F3x+wbMQZtlV0zwwc0xT9+F5QfTK9tBr3T+EpoARdsm9 X-Received: by 2002:a65:5b8e:: with SMTP id i14-v6mr2520058pgr.242.1531408318603; Thu, 12 Jul 2018 08:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531408318; cv=none; d=google.com; s=arc-20160816; b=s+Xdkor6ZAdi32D0G6vsy8ek2C7OZlAeF4ZMcEFZG2kvBg7nAOacbjCD77iHbLwG6h +LXpethawQbR26WUNp56Ax4npsO5q6sXqXy4aogUlBQGjb2joRmtjxvWONgH56y+togf rt3coL1I18jMzdGFf1Kfyp3t7H/qGnLtA6PsMQF7Js1NZY8/gybWR1EKUmjqULlnrzIF pGgGWV7zS537W/pW5QpbMr7IEF+BNJ0KXhf+UulkFpSLEpRz354WM35UF972Erm3K/c+ qCId+b57tU8mzhhW63CTUHS5nqcilt9N/TEJowH80QGkldjdOBRlqGjARP2A8jgk6RhQ 0HgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=w947lnXagwvp3CQhklfblYVjWH1Pf/MVxv9XfACJkNc=; b=fb/MRM2fIQb2l0DeBsL1qwxaXcO3FebZioCUYeSj37rN0Ah64VorhskXOdTuKn74eb bARlET4Yctt7emc2kHX1qyy2nfN/4Xhe8aXKbJQcPaIg9aGuc99wOu3kT7NTZvxnV0Vk bghPCCM/6YKeiAPTCPA966Q8eo+ErNxkDa3XTLQs9PSksramdCXT5O0E1oUPHzGq4QSn MWXAZ+II4bZCQv4cYbwWpIE30yW7ius1Bd2JSiTjQVdlXp2PC9PQ86eynH5nO0zMHdcI i9UxisTNkyHRi43MAU803956ZzD0C/o8XPjaWl35TbJ2z787P71mDyQjKP0TUY4tsA0D tELw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18-v6si21837582pfn.158.2018.07.12.08.11.27; Thu, 12 Jul 2018 08:11:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732738AbeGLPUl (ORCPT + 99 others); Thu, 12 Jul 2018 11:20:41 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:9227 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732531AbeGLPUl (ORCPT ); Thu, 12 Jul 2018 11:20:41 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D7C3E146B962D; Thu, 12 Jul 2018 23:10:29 +0800 (CST) Received: from huawei.com (10.113.189.234) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.382.0; Thu, 12 Jul 2018 23:10:23 +0800 From: Yunlong Song To: , , , , CC: , , , , , Subject: [PATCH 3/5] f2fs: blk_finish_plug of submit_bio in lfs mode Date: Thu, 12 Jul 2018 23:09:28 +0800 Message-ID: <1531408170-45758-4-git-send-email-yunlong.song@huawei.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1531408170-45758-1-git-send-email-yunlong.song@huawei.com> References: <1531408170-45758-1-git-send-email-yunlong.song@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.113.189.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Expand the blk_finish_plug action from blkzoned to normal lfs mode, since plug will cause the out-of-order IO submission, which is not friendly to flash in lfs mode. Signed-off-by: Yunlong Song --- fs/f2fs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 70813a4..f12151d 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -263,7 +263,7 @@ static inline void __submit_bio(struct f2fs_sb_info *sbi, if (type != DATA && type != NODE) goto submit_io; - if (f2fs_sb_has_blkzoned(sbi->sb) && current->plug) + if (test_opt(sbi, LFS) && current->plug) blk_finish_plug(current->plug); start = bio->bi_iter.bi_size >> F2FS_BLKSIZE_BITS; -- 1.8.5.2