Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp459877iog; Fri, 24 Jun 2022 07:22:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sZgkDTrp8CC54rt/BRjLZfUljcpwgpJvcSCor7/wWDIxfbsJsMbMakYHA2m2Q7FT75yVxj X-Received: by 2002:a17:907:3d8a:b0:726:396d:1848 with SMTP id he10-20020a1709073d8a00b00726396d1848mr1021367ejc.339.1656080535320; Fri, 24 Jun 2022 07:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656080535; cv=none; d=google.com; s=arc-20160816; b=L4cJqJ/3crKxHCaGXnb5D74WRo3/p/+mH0pDsQ2xwyV/FQF6Dq2aGPduZhwhV+ojns Yj429KjZr1aw0Wy7PcjhbHrQ70cbNAhU+us/1/ZoOcOJTSpP0Y+zCG9ih5my1Cf64AzD a52QzJmawDNrHs6r+2sPKl4jB8ny0tsarAtajMygbJZR1nP7wEy8G03oyLNSibEMqnQd 24tcGKF/vde2s9jdtXx9TmmdLLoZ80bAydDPsXb1JFgiIvJk0tWBy7gqNnU/nUlCIxUF Zl1YPTR2ULtYYZfd9UItub5QsT47bjFEpAcIxiSqev2xXv5Dj8ten+ZNRRSvlAAvtNJQ SBWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Gm1rQOK+mtphDI8kcI6bqB/QE5aGOSJgtL/42BhKW1s=; b=fMGgjVu83Esk8CHQzHpdQqJNcY6vh6LVw7Ggi6ZDSbuGEiMsqQ5djLnYDZyYcMxMGf ic1w3Ogp75zpKF79iu18CXtsMR2wu3gzQlRsFc1EW1AxlcwcEMC3ZJibF35u49Di+Z9t m0QaTz026rIUnXrqP2Frc1RK5vDzrWCJiT1gliQPG7xyuenT0m5jlVTQb4Om5jJv/sOe dk2LvjWhITpPnC+awIKZsF/STbpv2jGYU7E6/YgRjhA3+Yd565y5J/ePkuAeUfynLgRO vHwok2oyMDHKNo6J8mxamZvWMEfjQJjTGuAVMXQN6cFDhGzzQ5gSa61Qvj6gkzAym5/D jlBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jUJmsfux; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020a50d0cf000000b0043559d7651bsi3011264edf.515.2022.06.24.07.21.50; Fri, 24 Jun 2022 07:22:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jUJmsfux; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230234AbiFXOVr (ORCPT + 99 others); Fri, 24 Jun 2022 10:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232411AbiFXOVq (ORCPT ); Fri, 24 Jun 2022 10:21:46 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA7C9562E0 for ; Fri, 24 Jun 2022 07:21:44 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id z14so2614678pgh.0 for ; Fri, 24 Jun 2022 07:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Gm1rQOK+mtphDI8kcI6bqB/QE5aGOSJgtL/42BhKW1s=; b=jUJmsfuxsGmBkBlz8uoOMKBsh5zii0b6kyo4UGtUZtRcVP/eQ62xEqx1yp+p9r2RBb u2iemCnlN5ab8kxb5/SqFbREuliur6+AHpIegfg+WDqRPMdn047nR2F7NvlJhsvd1PMD Y5WC0N1Lbcblf5BCO/LdQbFvxSpDg+1smsR2CBnsJqNZdMAgEj4e838L8oT8mGOPmTrp abBOMbDW5GPx6tR5LeTLMpQw5SPhBt4gz6b1Xf2A1hZj5JKu5TKfU85dfIvDQ2af6wua LLQMBgNXpWRRKmKC+cs1pvDP3w5oNoUw37bUO/t020HI4hc/1v4OYMkFXJ5eULRlVHI5 IYFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Gm1rQOK+mtphDI8kcI6bqB/QE5aGOSJgtL/42BhKW1s=; b=B68Xei0q3AXYzebIdvo+p5f5ZosivZ8Fp9SIcE++iu4otZRsG/MtlZXdeDsCJdsVrI jyk4ddzNcraP3wIKHfNV9OmiN8UjsI+jtqTECSuajzWhSMXuG1q8iMMb9Hx60dPRDDL0 sbk5PmijwjFlAAQW2slS3ANSV5f/ITOf2zr2n+bUEecH2pCfIjQ1jeOdRc+7EC7uCU0I NFPzllw++acnFwJEFUVMRNn1ontdMqQwSsoiwpOKpz1dLdDv2cFT1tveufPjv/ui/fsq IUWu4Q+uOT0omojbPZLGERgcJZzRwkqw00tSYzm0GAeM4jsSHIy6Z29OsmoN4d3BZgCA h/MA== X-Gm-Message-State: AJIora9kQ0EzyXHIWOfCZVq75vMeM6hQ3maiNYlXgLROEwsRJ3yKP+L3 QZyH9c4B9BTvLiDDGeorpZqK4g== X-Received: by 2002:a65:6c10:0:b0:380:437a:c154 with SMTP id y16-20020a656c10000000b00380437ac154mr11854740pgu.549.1656080504253; Fri, 24 Jun 2022 07:21:44 -0700 (PDT) Received: from localhost.localdomain ([199.101.192.196]) by smtp.gmail.com with ESMTPSA id jd12-20020a170903260c00b0016a15842cf5sm1868877plb.121.2022.06.24.07.21.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jun 2022 07:21:44 -0700 (PDT) From: Zhangfei Gao To: Greg Kroah-Hartman , Arnd Bergmann , Herbert Xu , jean-philippe , Wangzhou , Jonathan Cameron Cc: acc@openeuler.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, iommu@lists.linux.dev, Zhangfei Gao Subject: [PATCH v2 0/2] fix uacce concurrency issue of uacce_remove Date: Fri, 24 Jun 2022 22:21:20 +0800 Message-Id: <20220624142122.30528-1-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org When uacce is working, uacce parent module can be rmmod, parent device can also be removed anytime, which may cause concurrency issues. Here solve the concurrency issue. Jean-Philippe Brucker (1): uacce: Handle parent device removal Zhangfei Gao (1): uacce: Handle parent driver module removal drivers/misc/uacce/uacce.c | 135 ++++++++++++++++++++++++------------- include/linux/uacce.h | 6 +- 2 files changed, 92 insertions(+), 49 deletions(-) -- 2.36.1