From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.69 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796233755; b=1TPWKlcfaqezqQeL3Akjc0w3DjyjSPuKOmtla3BGpfwyHYagWdh5BPMavtLByuYTEtYz 9k6Wuryt21SfggcnoS2YucBhS1VtJ3rJvT98i6BKM9B/eh3q+m/t6TjsgIqvcT/Z4piYi WzfGU8uSIV678nHONQGHfjRBhkv6TV0tXV0zdo4aH3BH4w1ZvxGO0QbL2S30byVuA6W54 dnY92Wee0Hxh3A/4lL9juS0Q6kr4UMjRaquHxG6TtHJoKPncmj5GR6Mmt8kq+/26XDsyc Lqhrw4vqmCl/PIa/lG7SYglAMOam7KtIRt8r/MVPw4+JtDkM7iWmJM9aqYUBBSlQG7A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796233755; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=qxRYVwuWYYJ2iEBW1c+U+gS1S4dXPRyDcYbrTpAFpjY=; b=KPw2vVpWA9mG7FJ8cojTNUXURqBR/dHd5prqvSqktc5+Zj5+4OIQtjQZbx+aawQYuwD0 0KeoXtPZvVQkPO6cytTB6SwPTZltwUGPAlwgRYAzA0oa7NLceA73OacynCsGJdGn7Qemn 2dolawnokuPc+Ktl1FTy+nP+/JyZln1ozPZsf5IKJz20+GooEzFl1v4/E5Cu/jCP8VGwU f6Cr7H15uroaEB2u95rIIJF+YO+bpTQuj+BkrDuw2ehUrcrZCFRRHoSIKVk0fbhdNJ31e 1cv7wiA/fJfbIprxvsWsKxPaUnzKTVDKUivqs0U/EhIWm5rlDxieiRHy8vAZvg0ANTw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--penghuang.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=DR0DKdEW; arc=none smtp.remote-ip=209.85.160.69 Received: from mail-oa1-f69.google.com (mail-oa1-f69.google.com [209.85.160.69]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34B1F606A338 for ; Wed, 2 Dec 2026 17:49:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 34B1F606A338 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--penghuang.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=DR0DKdEW Received: by mail-oa1-f69.google.com with SMTP id 586e51a60fabf-492f39f29c4so13245478fac.1 for ; Wed, 02 Dec 2026 09:49:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796233754; x=1796838554; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=qxRYVwuWYYJ2iEBW1c+U+gS1S4dXPRyDcYbrTpAFpjY=; b=DR0DKdEWr/LmcOuQpYUYtRo80ePv51mz9Ec+omQ68i4m3DnH0A3+YIIStMNH45Tfis 7dYvIhwdsm0GWm1iIy04d35mywybpuj8Ff93wP40Jmz9AzUs+U2Yf207CHeN+d/aOJna kfDAYt5G9FilQxR8NyExQaBBBMd9zHrjj3LUXwslX/AOpk4UZKdL3Zub4BlU7KYYqEtE 0euywbmMuZuPG00zDyja+GJdqqz2V6/n6yiLigw1u2qggA7T+CN58JVrw/DPkePJ5F52 3BWfo++8ZGmAz6UsYenDF4FkGlOTYWy8TkgcA5XiXTiY3KjyYD0iqwNhXwMIsm0HNHP1 rAsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796233754; x=1796838554; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=qxRYVwuWYYJ2iEBW1c+U+gS1S4dXPRyDcYbrTpAFpjY=; b=PLXAAg8kQn2+hc2miS8aVBPC7IPCnvbgoe3nIQZxFzEFaIcTpADsGU3HJk6344u5G9 rSD2gghsNgnEhCaKm5luiEAKEyocdt8kX278ag7PbZYp/P0sjGVPwSo1bc7ZdqgdVYUt kBVrSTUxVac86Pckw1XGkA/oYfcFdWgC4ersl6xejkBV2liYRpOX9C+lKC1U9h6ivH1Y 3VQ5p5Cov1E7Knmq88+dYlslXLOxtOVjlrznYIhAab+mHNd+6e8WA2wYLC7tnSF0aAzq noGnK1kemCjYM23JAiXdW7i9xMCbMVQLuQxKpdU2PZIc515Ez/lTw3XtxWbKZkfmPZsK /2Qg== X-Forwarded-Encrypted: i=1; AL+hErFw7/AEXVQAZWdpdmfsLNKV5U1zzcO2BsU/Cj2Q1p8F8q7XrCxO93jGmuBCawmPQZ5adr5Ti93xztq0zdc=@vger.kernel.org X-Gm-Message-State: APuU4Z/SWmxB4T5oN2otkcG5cDJfjQ2bnglbaqHVtepeLHCvLHuiEhLh dWJbg9zxc5aUSOqh7WsQcJ5iC0wCsqs+Ml09vitFtfr7LdtY3KEA/4Wt2w6YdxC6u2JJXZRZj/Q tEfhZkur6gpRBc5DpoA== X-Received: from oapf31.prod.google.com ([2002:a05:6871:71f:b0:4a8:57aa:3e44]) (user=penghuang job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6871:4726:b0:4a8:d5f:a1f9 with SMTP id 586e51a60fabf-4bc8308c4d2mr41252973fac.30.1796233753699; Wed, 02 Dec 2026 09:49:13 -0800 (PST) Date: Wed, 2 Dec 2026 09:49:12 -0800 In-Reply-To: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261201062738.1047159-1-penghuang@google.com> <20261201211018.41673-1-penghuang@google.com> X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog Message-ID: <20261202174912.648822-1-penghuang@google.com> Subject: Re: [RFC PATCH v2 0/6] rwsem: priority boost for holders blocking high-priority waiters From: Peng Huang To: Kayra Cizmeci Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , Juri Lelli , Vincent Guittot , Waiman Long , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , John Stultz , Suren Baghdasaryan , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Sebastian Andrzej Siewior , Clark Williams , linux-rt-devel@lists.linux.dev, Peng Huang Content-Type: text/plain; charset="UTF-8" On Wed, Dec 02, 2026 at 07:39:16PM +0300, Kayra Cizmeci wrote: > Can't we select one of the readers as the owner? I thought about that too, and ran into two things: With a single reader slot, overlapping readers slip through: if reader A takes the slot and reader B enters while it's taken, once A unlocks B is still blocking the writer with no owner recorded. We'd also need extra sync in up_read() so the owner task can't exit under PE. Keeping a full reader list on the rwsem lets us hand off to the next reader, but puts lock/list contention on every down_read()/up_read(). Happy to hear if you have a cleaner way around that! Thanks, Peng