Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2980391pxv; Mon, 12 Jul 2021 06:38:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkyyq7ztu+QLo3eCEL1k0OIl0R6TDULmtqCRPoRhHQoXrGNZ+X3k5nspmI4u5FCtBrD+Ez X-Received: by 2002:a17:907:3e97:: with SMTP id hs23mr42579380ejc.96.1626097092268; Mon, 12 Jul 2021 06:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626097092; cv=none; d=google.com; s=arc-20160816; b=SWCQpG2Y66hBA+cyMSYuVfmR/Ij75uR2TP2I6e3JvJjz6CBtrIn8NHP0UtM3UCubgI pOflBK6SD0ReXL7GWCRt1OKW2YdpqcunuiwrAL2gc6xuPDDqN8S3jsXUEG3Eej8dM5ZA H2+51m6DYjbbneLJhRgc3QrUdT7R3V75KFkIca3Bkh0OwK1hJtBMeYhWXCFZloi/BaJN ITZYZadnnZ8xmNf99z14eeGtUQO+22ofvakSNAP0Mcytq/vOpe0PpB9SatCO5+ZqPcq8 Tio+YNrq4IS5dkJ5jpT55fRQumMUn7zMLLLDvSwuCuKQ7lSvedVvxXLHeSB5k31ejqra j3Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=CCr4bwmZ8rlY8/pKVPD3JnctbPMKbJe9syawIaNOMVU=; b=Tcq5NBYJubjT9NO3cgv6uRZPeoJWtdFBdOHa20BEhqz/cdPERy1XWE0yw4VlGZ4V4d fUMxm+66tdcifrNfC/BNb7GGppysRjYwrEx2GNB7ukC2XZMMw6+DeXXOdY6JmgGRHlQF AsrLNQ1j1NEwMl7OnnIrXJ3dNSbPAhguC/K/3PAxXTJEtrby14ddyRs+nC168Jf2eOyt eYmbWdNsC7HpWmesyg7zcpBZT7l1vg2+TCvAsKVRKf1JCBFKFhU/5zWg/OZV3O0ZY+1r ZXSp1C1blQ232ghiiJnWdNK+eu8z7TFOKdDqgw+dlQ16Py0a1k64Hx1p3DDwlXibJdPg /Bfg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si16130446ejs.746.2021.07.12.06.37.49; Mon, 12 Jul 2021 06:38:12 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231721AbhGLNjm (ORCPT + 99 others); Mon, 12 Jul 2021 09:39:42 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:14069 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbhGLNjl (ORCPT ); Mon, 12 Jul 2021 09:39:41 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4GNl8b5dTjzYrTf; Mon, 12 Jul 2021 21:33:35 +0800 (CST) Received: from dggema761-chm.china.huawei.com (10.1.198.203) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 12 Jul 2021 21:36:50 +0800 Received: from [10.174.178.46] (10.174.178.46) by dggema761-chm.china.huawei.com (10.1.198.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 12 Jul 2021 21:36:49 +0800 Subject: Re: [PATCH v2] mtd: mtd_blkdevs: Get|Put mtd_device in add|del_mtd_blktrans To: Alexander Sverdlin , , , , , , CC: , , References: <20210615091302.3428611-1-chengzhihao1@huawei.com> <13509562-158e-f883-5a70-094126dca993@nokia.com> From: Zhihao Cheng Message-ID: <2641a9cb-e3d4-53a0-ecaa-dfd9091848b7@huawei.com> Date: Mon, 12 Jul 2021 21:36:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <13509562-158e-f883-5a70-094126dca993@nokia.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.178.46] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggema761-chm.china.huawei.com (10.1.198.203) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/6/15 17:27, Alexander Sverdlin 写道: > Hello! > > On 15/06/2021 11:13, Zhihao Cheng wrote: >> There are two reasons to move mtd_device get|put operations into mtd >> blktrans adding/deleting: > ... > >> Fixes: 073db4a51ee43c ("mtd: fix: avoid race condition when ...") >> Fixes: 008c751ec78587 ("mtd: allow to unload the mtdtrans module if ...") >> Signed-off-by: Zhihao Cheng > Reviewed-by: Alexander Sverdlin friendly ping