From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C689539F18C for ; Mon, 16 Mar 2026 14:05:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773669946; cv=none; b=gk5W1sQcdx4sSIF+dYiXDO4WoVfncY7uIZgIerEtTSAxwHH81/rtcWEsox0vgRmh8kTV5X27C+zhIqgKW+JEnSlS9yLhlP1MbJUVvq5cDuJ3bNICm2V9ZrKNmEv9D1hqu4cTNUCriURe6IbGexef1dnNKQ6e/uruRrimzs5p9qM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773669946; c=relaxed/simple; bh=S+D8dSLW8oWKsKSTJ1PKigEnOCf3XPfVYvzqfqISQaU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=MyeMB0jOgnH1D1dixwXP1fxmu0rctQw3TYQru53iyvbIkiLpDk8ZP5wfAFV5rf8/kPBxq61werqhv2h5bkjr/OZCX1YogUt6zR8mYq3EHCnE8jp21kn+E8GIsgooBlb6ObvJq7F84jYv9b9705j/BHJLWuFL2i+yT6ou4S+sNtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ZvqBxHQu; arc=none smtp.client-ip=209.85.128.74 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--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ZvqBxHQu" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4853b00f9f5so49385535e9.2 for ; Mon, 16 Mar 2026 07:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1773669943; x=1774274743; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=KPjHmgruixhmkQjw04sh9Mjy1u+NZy/GWXT+thsthOE=; b=ZvqBxHQukFU93I/gPsZYLd5MR0bzK6ax2krIrR+3t6HKAfIRmI/LwMbnG/7K8ZuXOD ZM86TCM46gxdbhKAvXAZbbjD0ZWHdsYJ1fYUF9dwxDS722GffSZC+ztJz/RY1TnL77b6 hXAPCTJvl/zInACwYmqiF5+dIf+uyiOEw+ZOFTSZCM8o4JvULCTxb6TpCTgacvF+pNT/ AnbFdzSNn8QeDSG39YkvGBK5E5bFmSFxvagEEGrkDP3zIzVFjmmQ08fmtBnZPFpx1F2G MkUoMbGTNxy3fs5n5I9lD2NtiPfGMhNmFBY6CCQVKXSWuaCb1WClGmxojHeYlEVd/KUl OSqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773669943; x=1774274743; h=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; bh=KPjHmgruixhmkQjw04sh9Mjy1u+NZy/GWXT+thsthOE=; b=mQdbwZq+bKlpZ+uLiJF4yKz42rctBPqJjXtGCkob4YNbIz28ZvTjI0ZxDkzqV+3u6Z PAVPE56oLzLCbS8YN5er79FyqN8n82AwMD4E+eejAdOydcMPPTMUab/KtQiF8viLZ08y wXPoomortTqgV1J7CKWMc+v97iCMHkQuEvKUD8iRvLokJTTTxlBbaeUfZq+HSTRrsPIl n6OoSZiuG9YY8XSPB4dhIvGFzga86vcK3QZskr6M5gFWYAD6oS041WEEIXNbmfvTAd2g +eUDOZVuzVzjizRE5RUzEDdRvbYIQ8gOWlBia6+MtNuQod+hTPDKiRA+NIa0wtsiYTG/ Vi9g== X-Forwarded-Encrypted: i=1; AJvYcCX4JLk0qWIC9eAysKlVRGzaTFwbUX1TwOVZwGaZ/kRmjSJNW7SCGKb4/TNuNxUDGfcLYglVvPqZnLOg9/0=@vger.kernel.org X-Gm-Message-State: AOJu0YwAMU3Ih+XEuGFfCoG2bfiMLecXm287H1YijwhNYJ3RpGjalVjv SQ+QJU+eo4Ecq2Y7pU73WEH+9dRWqZY7VsGDTrXkvVSL19eFqvcXHmkqiKazUVRNiFCfjqCig4A zYlXCsXSSumvGU1K0jg== X-Received: from wmqy12.prod.google.com ([2002:a05:600c:364c:b0:485:408f:802f]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:64ce:b0:485:3b34:2f62 with SMTP id 5b1f17b1804b1-485566d0c13mr212567075e9.14.1773669940884; Mon, 16 Mar 2026 07:05:40 -0700 (PDT) Date: Mon, 16 Mar 2026 14:05:39 +0000 In-Reply-To: <87cy13swpw.fsf@t14s.mail-host-address-is-not-set> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260216-rnull-v6-19-rc5-send-v1-0-de9a7af4b469@kernel.org> <20260216-rnull-v6-19-rc5-send-v1-15-de9a7af4b469@kernel.org> <87cy13swpw.fsf@t14s.mail-host-address-is-not-set> Message-ID: Subject: Re: [PATCH 15/79] block: rnull: add `use_per_node_hctx` config option From: Alice Ryhl To: Andreas Hindborg Cc: Boqun Feng , Jens Axboe , Miguel Ojeda , Gary Guo , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Trevor Gross , Danilo Krummrich , FUJITA Tomonori , Frederic Weisbecker , Lyude Paul , Thomas Gleixner , Anna-Maria Behnsen , John Stultz , Stephen Boyd , Lorenzo Stoakes , "Liam R. Howlett" , linux-block@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="utf-8" On Mon, Mar 16, 2026 at 02:57:47PM +0100, Andreas Hindborg wrote: > "Alice Ryhl" writes: > > > On Mon, Feb 16, 2026 at 12:35:02AM +0100, Andreas Hindborg wrote: > >> Add a configfs attribute to enable per-NUMA-node hardware contexts. > >> When enabled, the driver creates one hardware queue per NUMA node > >> instead of the default configuration. > >> > >> Signed-off-by: Andreas Hindborg > > > > This and other patches make me think that module parameters should have > > value() return a copy of the value (and require Copy). For non-copy > > types, there can be a separate value_ref() method. You would avoid *so* > > many asterisks by doing that. > > Makes sense, I'll send a patch. Nice! > >> + use_per_node_hctx: u8 { > >> + default: 0, > >> + description: > >> + "Use per-node allocation for hardware context queues, 0-false, 1-true. Default: 0-false", > >> + }, > > > > formatting (rustfmt ignores macros) > > This is intentional. The line gets too long if I pull it up, and I don't > think I can break the string in any way. I think it would require > changes to the module parameter macro. Just keep the wrong line. Checkpatch will complain, but it's standard to ignore that checkpatch warning in C code for long strings to keep them greppable, so I think it's fine here too. Alice