Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1694123pxb; Wed, 9 Feb 2022 02:23:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2g0fe4HFPPWighjfP6SlCnHtz9ZSQU9UWqULnHbuu6OZm+Woh4H16w9GnVcGZScGxMYIL X-Received: by 2002:a17:906:6a93:: with SMTP id p19mr1318341ejr.711.1644402182045; Wed, 09 Feb 2022 02:23:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644402182; cv=none; d=google.com; s=arc-20160816; b=dn1X7vsZBVZNKEKsLbc+InIX6opVCdzspAQtVEzXeE65Rzto1e8NaNdrR9G3AdYNtm zFQ1Fi3TAGGtjDMfeQp8qjF824rIMQxSVXvIPyXnlKUGJ5nUM6GRD0JjHzHkseGS+YWA o/u+sNMdyzQrTrTI27seLl/3BJJD9dckor/N8tGCvkH5eGtVZr2qiM76DSIa5DeOnWq4 rFkh+otuObKbFniy0IR325zM/I0vye92MBJ6VvfPX04jLXsXgsPRNF7hhd0BY76XTJa/ s7u63vzISFPpQSGwSZf4C3mncQCdTrFMoD5Tr8QmU09egL6tFhgdEgIq7FiVSLY1HfiF L9LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tCJweZfHtprqNwQuPKuSEa8equXJDKCDWHoJe/Xk+94=; b=DNkDLlnX3QLignxxcpp+k4g6Uz9uTzkqVLMhMa6HlHrqCzgqQ9RuKAXiVOCbHVZav1 u+hd2Av3g3bRm6CG5aQ8kTrQM3ejG5CupO6sExPT79NzJqyKIrel+1gP4DuvL6s0Znbl nqaHLlUQNQUmunq/SIJRo5t5MtdBK1tXbYiqj/eiF0ykJOysxP4iADM8M4e8UI/g91lp oR6vsKtyLxsXpxRgaqQPzGbXPCqkvBzXy6LeoMS5kn9cJSwQgnzmU//t+TEw7K8pZBuy hmhn1/3giY0y3Touzde49W3Gqa9EvAhJghKwbb8QS1nZYH48TMKYzmAMhceQsZXWr/t3 ki4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=fmLm2+b0; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si9563246eju.757.2022.02.09.02.22.36; Wed, 09 Feb 2022 02:23:02 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=fmLm2+b0; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344156AbiBHBtP (ORCPT + 99 others); Mon, 7 Feb 2022 20:49:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343704AbiBHBbj (ORCPT ); Mon, 7 Feb 2022 20:31:39 -0500 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1023C061355 for ; Mon, 7 Feb 2022 17:31:38 -0800 (PST) Received: by mail-yb1-xb31.google.com with SMTP id bt13so21440160ybb.2 for ; Mon, 07 Feb 2022 17:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tCJweZfHtprqNwQuPKuSEa8equXJDKCDWHoJe/Xk+94=; b=fmLm2+b0Vi8fyFlno+sBzlvxdiOinqMMSjhhIC3lIyAfleRXnfHq74bS8lB/mSNU8r 6jXDw5garFcyc7Ibtr6uEe4zrLDIHhuXcAVhvSYY8XJk0M9XM2O4lmcd1N9IThzroYpZ GucSNu7NmuuXNL0Ogw6Vd9IvU1Z5hyTPnJEJgWN+khl8OBW3dRCn4iHISMga3oykiq7U /odbVMN5shA5S6T1+BhLTqlF1xEgfnx7Wvx7GmHCeL4ye0G2pCRNhk1L4EJTbXHbPAWc Dgyv9VK9aMkYe5wpKd+SpryQ89VHUSyQubkEYPIopT0zcrKn5+/SeOfDcTM6mu4ZSSTC OYUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tCJweZfHtprqNwQuPKuSEa8equXJDKCDWHoJe/Xk+94=; b=I4zz8TlrSqc6ra+R3UScHJ/bpOqh3Jq7xYMNXHNnkexIZZ/e25rdqx4zmvYeTsVKx4 MmXjN63psC6ufX7l1x4Vq0dW0+hewm0E9oW46EjLVye5zP1xBSvJXYfaN/u5m4fVvluI m0pemRGcOaU7cn2Pi+gGNtrLt3RDjV5Rsjz31/5koDMVU7T/bJGiQoIjr2QTSNpLJLZc WTx1iOpUiVO3Byiieul6hD8UBeQRdShhU+lRrPlSKJOMp4NKAzSrqCfG25XRBOSnPLwf KCUzHj6FFgsorxKrdA2kq9y8UjokUtuirwQCVBnHEKkCjOsiglg62A5y7/izVE/nyOaq Isiw== X-Gm-Message-State: AOAM530p6rjknNM9gOIeGgTyxnS/xx/mPpn+VUbWYJJTn8KG+KbMAukd DYGRzv5ooHZE1X0jFcWXA649F/kHwW3pcvnp+ceasQ== X-Received: by 2002:a25:7a47:: with SMTP id v68mr2663451ybc.488.1644283897723; Mon, 07 Feb 2022 17:31:37 -0800 (PST) MIME-Version: 1.0 References: <20220128131006.67712-1-michel@lespinasse.org> <20220128131006.67712-23-michel@lespinasse.org> <20220129121319.3593-1-hdanton@sina.com> <20220201020958.3720-1-hdanton@sina.com> <20220208002059.2670-1-hdanton@sina.com> In-Reply-To: <20220208002059.2670-1-hdanton@sina.com> From: Suren Baghdasaryan Date: Mon, 7 Feb 2022 17:31:26 -0800 Message-ID: Subject: Re: [PATCH v2 22/35] percpu-rwsem: enable percpu_sem destruction in atomic context To: Hillf Danton Cc: Michel Lespinasse , Linux-MM , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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-kernel@vger.kernel.org On Mon, Feb 7, 2022 at 4:21 PM Hillf Danton wrote: > > On Mon, 7 Feb 2022 11:31:38 -0800 Suren Baghdasaryan wrote: > > > > Sorry for the delay. Are you concerned about the use of spin_lock() > > inside percpu_rwsem_async_destroy() which would become a sleeping lock > > in case of PREEMPT_RT? If so, we can use raw_spin_lock() when locking > > destroy_list_lock. Please confirm. Thanks! > > Yes please replace spin lock with the raw version which can fit in > more scenarios. Thanks for confirmation! I'll rework my patch and will send it to Michel to include in the next version of his patchset. > > Hillf >