From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751883AbdJ3Mdh (ORCPT ); Mon, 30 Oct 2017 08:33:37 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:56022 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751434AbdJ3Mde (ORCPT ); Mon, 30 Oct 2017 08:33:34 -0400 X-Google-Smtp-Source: ABhQp+R9hFzptbAbPt+mYf42HQx4D5UcToYxl7c4RxIfGPnZjwtx3mI5y7mWDCYZ2LwMBXvQtprKd6Bg2w6O2XCDbh8= MIME-Version: 1.0 In-Reply-To: References: <20171010090049.6596-1-liangchen.linux@gmail.com> <01f432e8-950a-fc9f-150d-0b51fa9e7559@coly.li> From: Liang C Date: Mon, 30 Oct 2017 20:33:32 +0800 Message-ID: Subject: Re: [PATCH v2] bcache: explicitly destroy mutex while exiting To: Michael Lyle Cc: Coly Li , linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v9UCXifp027858 Hi Michael, Would you please to include this patch in your tree for the next release? It seems passed the review. Thank you. Thanks, Liang On Tue, Oct 10, 2017 at 11:44 PM, Michael Lyle wrote: > On 10/10/2017 05:25 AM, Coly Li wrote: >> On 2017/10/10 下午5:00, Liang Chen wrote: >>> mutex_destroy does nothing most of time, but it's better to call >>> it to make the code future proof and it also has some meaning >>> for like mutex debug. >>> >>> As Coly pointed out in a previous review, bcache_exit() may not be >>> able to handle all the references properly if userspace registers >>> cache and backing devices right before bch_debug_init runs and >>> bch_debug_init failes later. So not exposing userspace interface >>> until everything is ready to avoid that issue. >>> >>> Signed-off-by: Liang Chen >> >> Hi Liang, >> >> No more comment from me, it looks good. Thanks. >> >> Reviewed-by: Coly Li > > Looks good to me too. > > Reviewed-by: Michael Lyle >