Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1350869pxu; Mon, 23 Nov 2020 19:43:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwc3HvqMBvqGoVlzMU5CrS42vydMj767RD2F+jLFAP+/R1FI1B9YocrkQ+YK+zcH1oLeNEa X-Received: by 2002:a50:9f2e:: with SMTP id b43mr2145996edf.239.1606189423747; Mon, 23 Nov 2020 19:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606189423; cv=none; d=google.com; s=arc-20160816; b=0wKOoeaUUlIcRnWrSknaUlZfeDm1ldcR060JyhN6J9WVk0de+z0A/scMMny91wUrbu KsCaAhQd13M5TLaoEJSUVsaPi64OicuXo5fAQAZw6kr/u93oMKdQBJOlqAkU1K/oEOqe mf685/EvUQmGyfiYLhaF752ElV5OynayR0cdlEcX4DvpktS+ghvY0cuPi+IP2Xlo0aB1 eUXPDpBcNgwrK/rZ3PFUqpeELgdIiTOrNP7decwJ1N03QAVTu82woc+Mobyn6IetpSJI AH5DfaOu9qnRcAECtgUV0h8xUnsyvzmjmd003I7ju2Mvah4cEpBmR58nNssRPi0dD8Sj taaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=+SnvyvEHQwoj+Ythmg41tLQbDL5iiS2xkJRtozZHjUE=; b=u5nhxMh11W9XKi0zsE5Mqkf+dLU4n7wPY8O5h1hYDS2bT1HUz3o/EwT8ssr7RwoAiB WAOPWIbjiQQQu3JB5HOBhALxGhxfDW11bOyw3Np9aT4IPLcVJGvLarWJL4Sg4GJ+AWAr XKI4cKSJ6qQN9Q5HUr1u6BTj9gjOAjD790ZDv2a7Kk3IE3e72IIngIjzO+htublOHlc7 JtKjLhPrE2ZPs2buDp2aRr0VBQMTfH2Bct18yT1ixtSTLUJsPrEchwVveX9hAc8nqE+i NT5h+lQhAyQitrNqCZOHssoZ8j2RanDlEspVVtXLRRNv/RhhpIBiCWMpgXzLc5uabOpw sTvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o91si7960303eda.564.2020.11.23.19.43.21; Mon, 23 Nov 2020 19:43:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728880AbgKXDG7 (ORCPT + 99 others); Mon, 23 Nov 2020 22:06:59 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8019 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726505AbgKXDG6 (ORCPT ); Mon, 23 Nov 2020 22:06:58 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Cg87K4pKLzhYcQ; Tue, 24 Nov 2020 11:06:37 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.210) with Microsoft SMTP Server (TLS) id 14.3.487.0; Tue, 24 Nov 2020 11:06:55 +0800 Subject: Re: [PATCH] f2fs: change to use rwsem for cp_mutex To: Sahitya Tummala , Jaegeuk Kim , CC: References: <1606109312-1944-1-git-send-email-stummala@codeaurora.org> From: Chao Yu Message-ID: Date: Tue, 24 Nov 2020 11:06:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1606109312-1944-1-git-send-email-stummala@codeaurora.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/23 13:28, Sahitya Tummala wrote: > Use rwsem to ensure serialization of the callers and to avoid > starvation of high priority tasks, when the system is under > heavy IO workload. > > Signed-off-by: Sahitya Tummala Reviewed-by: Chao Yu Thanks,