Received: by 10.192.165.148 with SMTP id m20csp1548012imm; Thu, 3 May 2018 01:00:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqBUYbqx284s5AnMtn8eQzLTbgwHTL52ku8SCxu94hpxvNlzBFfsUG30l6k6UYE3XgqydQh X-Received: by 2002:a65:6188:: with SMTP id c8-v6mr18582355pgv.131.1525334439386; Thu, 03 May 2018 01:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525334439; cv=none; d=google.com; s=arc-20160816; b=dC8WWkQKjGpBhvHh8Dj155txw4JsR57+k39cWvWMlW9XPPvWM0OEUO6X3hk9ccqTcz /XQIOmM20Q81O6sVFrcTSjyaz3ilfyImjMrPbfX95y7cWUKjP7dyDzUwyqQmv6Mp9/Qs 6bap2MjL9x1H0e0fcjbVWBKUZCr+0kawMEsuefd6O+klC/C9cPft+CifFCz3GsNn+je1 qzD3GIm5FX1jVu4mSGT1gIGVmjXqh9D613AA7IqjVp0oOunO7UjaDgbmo4oujVMy51Ft lCAFtypiJv9UcmcfN1ZBnPorKcN00uaxLdR3+wdBj4ng9HD3989xSMSYMaPU+WYIuNMa c1tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=EyhszjoV5iV4Wwo/GYti+9HprrXotB2DYkD0QP1s8ms=; b=jtMK5RsWTn52kfU7zump07Ii9fvKJtBOvrNCNHEwvDcr83HMjwMfKcfYNnY6cxDhGo Y815/n9vWAxXdovxFZyf+teJ5z4Pyh+E6vph7TOeAfn9xlTYt2CzHt7xLM6hGHC3i3TX uY9wBnpmq+pjOdysWLGlO9+BHbeVFv6tUombvEsDWYNduHyjhuGylZt+xZlNdq3jdX/0 qtc2bKl3CwvgS8VA7S0aJRzL/ZncwyAHT29ltgBE90teCh6XZYQHlqfpOFaVMbfCuG/D ZPO5UC59waV7UIj1s14bGmh2Q4y3NP8LeupSNbsM/0Wno4Q+pNTzatakWzoQQhlsjA4Q 2xMw== 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 bd8-v6si12715033plb.156.2018.05.03.01.00.25; Thu, 03 May 2018 01:00:39 -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 S1751004AbeECH7G (ORCPT + 99 others); Thu, 3 May 2018 03:59:06 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39508 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750781AbeECH7E (ORCPT ); Thu, 3 May 2018 03:59:04 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 6FC314C1D4D19; Thu, 3 May 2018 15:59:01 +0800 (CST) Received: from [127.0.0.1] (10.111.220.140) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.361.1; Thu, 3 May 2018 15:58:51 +0800 Subject: Re: [PATCH] f2fs: fix the way to wake up issue_flush thread To: , , , CC: , , , , , References: <1525333543-106702-1-git-send-email-yunlong.song@huawei.com> From: Yunlong Song Message-ID: <8ecda55f-1975-2797-41e4-eb72b492dcc3@huawei.com> Date: Thu, 3 May 2018 15:57:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1525333543-106702-1-git-send-email-yunlong.song@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.111.220.140] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please avoid this patch, I make a mistake. On 2018/5/3 15:45, Yunlong Song wrote: > Commit 6f890df0 ("f2fs: fix out-of-order execution in f2fs_issue_flush") > uses waitqueue_active to wake up issue_flush thread, but there is no > wait entry to wake in this queue, so change it back to use the original > fcc->dispatch_list to wake up issue_flush thread. > > Signed-off-by: Yunlong Song > --- > fs/f2fs/segment.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c > index 503a98a..5aa5ee4e 100644 > --- a/fs/f2fs/segment.c > +++ b/fs/f2fs/segment.c > @@ -612,7 +612,7 @@ int f2fs_issue_flush(struct f2fs_sb_info *sbi, nid_t ino) > /* update issue_list before we wake up issue_flush thread */ > smp_mb(); > > - if (waitqueue_active(&fcc->flush_wait_queue)) > + if (!fcc->dispatch_list) > wake_up(&fcc->flush_wait_queue); > > if (fcc->f2fs_issue_flush) { -- Thanks, Yunlong Song