From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A62DCC433F5 for ; Wed, 11 May 2022 09:37:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241096AbiEKJhg (ORCPT ); Wed, 11 May 2022 05:37:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239931AbiEKJgt (ORCPT ); Wed, 11 May 2022 05:36:49 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D23D15A1E; Wed, 11 May 2022 02:36:45 -0700 (PDT) Date: Wed, 11 May 2022 11:36:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1652261803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YsRk0Y52ceB53mzi0WU1URp8hY6d/Zh5KcVXn1JeIso=; b=RzKx2A3OwQ0esNe35M1hejmwml8x/rR0nFzylwQ7NubQ11bIXJNDXkPvWMmMPPjrzFhqON xvZtTRXTaBM2D5UrDKf1fmOSUTaRQ5CvwPYChu9fqbtISYp1EvgbzD01Px28623JbGIiJZ blK+h+IqPi0k1FR05u82nU3Wxjt8Dzxu6DQT7H0fvVnSJ0g6PsYEhtfHXw4FNZrAbmnSWx SSaMQJ99GgsIev7uBtvkNG0QmYIGErZBWIreJzF/m1bxCZBrGIKDvjWHhzewWj5pZ38pKE vNJmF2kJoAtP6oUYmuTHcW3lN8OvLtMUIHP7YHvrY67rw4i1LxED2VzOI6Avuw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1652261803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YsRk0Y52ceB53mzi0WU1URp8hY6d/Zh5KcVXn1JeIso=; b=ctQINjeHT9J5/fntc05J4Ji+uvR/PxE6gNX9a3kvgxJvwo1mTpy46Pk9yGgxiN9UClUQKD vR0hjYwsnPvIbBBQ== From: Sebastian Andrzej Siewior To: "zhaoyang.huang" Cc: Thomas Gleixner , Zhaoyang Huang , linux-kernel@vger.kernel.org, xuewen.yan@unisoc.com, ke.wang@unisoc.com, ben.dai@unisoc.com, shian.wang@unisoc.com, linux-rt-users@vger.kernel.org Subject: Re: [RFC PATCH] kernel: locking: rwsem optimization for rtlinux Message-ID: References: <1652257281-11494-1-git-send-email-zhaoyang.huang@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1652257281-11494-1-git-send-email-zhaoyang.huang@unisoc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-05-11 16:21:21 [+0800], zhaoyang.huang wrote: > From: Zhaoyang Huang > > With regard to rtlinux, releasing the lock to RT waiter could be helpful to > increase its responding time even if cfs writer listed at the head of the > wait_list. This does not apply to current kernel (v5.18-rc6). If you need want to apply some thing to an older kernel, I suggest a backport and reasoning why this backport is needed. So first you need address the issue, that you are facing, in the current development kernel. Also it would be good to know if "rtlinux" is PREEMPT_RT or something else. The latter uses a different mechanism. > Signed-off-by: Zhaoyang Huang Sebastian