Re: [PATCH v2] params: Add support for static keys

2025-05-14 Thread Kent Overstreet
On Wed, May 14, 2025 at 12:06:44PM -0700, Josh Poimboeuf wrote: > On Tue, May 13, 2025 at 11:40:05PM -0400, Kent Overstreet wrote: > > On Tue, May 13, 2025 at 08:38:57PM -0700, Josh Poimboeuf wrote: > > > On Tue, May 13, 2025 at 08:44:49PM -0400, Kent Overstreet wrote: > > > > On Tue, May 13, 2025

Re: [PATCH v2] params: Add support for static keys

2025-05-14 Thread Josh Poimboeuf
On Tue, May 13, 2025 at 11:40:05PM -0400, Kent Overstreet wrote: > On Tue, May 13, 2025 at 08:38:57PM -0700, Josh Poimboeuf wrote: > > On Tue, May 13, 2025 at 08:44:49PM -0400, Kent Overstreet wrote: > > > On Tue, May 13, 2025 at 05:37:11PM -0700, Josh Poimboeuf wrote: > > > > On Tue, May 13, 2025

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Kent Overstreet
On Tue, May 13, 2025 at 08:38:57PM -0700, Josh Poimboeuf wrote: > On Tue, May 13, 2025 at 08:44:49PM -0400, Kent Overstreet wrote: > > On Tue, May 13, 2025 at 05:37:11PM -0700, Josh Poimboeuf wrote: > > > On Tue, May 13, 2025 at 07:34:59PM -0400, Kent Overstreet wrote: > > > > On Tue, May 13, 2025

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Josh Poimboeuf
On Tue, May 13, 2025 at 08:44:49PM -0400, Kent Overstreet wrote: > On Tue, May 13, 2025 at 05:37:11PM -0700, Josh Poimboeuf wrote: > > On Tue, May 13, 2025 at 07:34:59PM -0400, Kent Overstreet wrote: > > > On Tue, May 13, 2025 at 02:24:46PM -0700, Josh Poimboeuf wrote: > > > > > +++ b/include/linux

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Kent Overstreet
On Tue, May 13, 2025 at 05:37:11PM -0700, Josh Poimboeuf wrote: > On Tue, May 13, 2025 at 07:34:59PM -0400, Kent Overstreet wrote: > > On Tue, May 13, 2025 at 02:24:46PM -0700, Josh Poimboeuf wrote: > > > > +++ b/include/linux/moduleparam.h > > > > @@ -122,6 +122,7 @@ struct kparam_array > > > >

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Josh Poimboeuf
On Tue, May 13, 2025 at 07:34:59PM -0400, Kent Overstreet wrote: > On Tue, May 13, 2025 at 02:24:46PM -0700, Josh Poimboeuf wrote: > > > +++ b/include/linux/moduleparam.h > > > @@ -122,6 +122,7 @@ struct kparam_array > > > * charp: a character pointer > > > * bool: a bool, values 0/

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Kent Overstreet
On Tue, May 13, 2025 at 02:24:46PM -0700, Josh Poimboeuf wrote: > On Tue, May 13, 2025 at 09:07:32AM -0400, Kent Overstreet wrote: > > Static keys can now be a module parameter, e.g. > > > > module_param_named(foo, foo.key, static_key_t, 0644) > > > > bcachefs is now using this. > > > > Cc: Luis

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Josh Poimboeuf
On Tue, May 13, 2025 at 09:07:32AM -0400, Kent Overstreet wrote: > Static keys can now be a module parameter, e.g. > > module_param_named(foo, foo.key, static_key_t, 0644) > > bcachefs is now using this. > > Cc: Luis Chamberlain > Cc: Petr Pavlu > Cc: Sami Tolvanen > Cc: Daniel Gomez > Cc: l

[PATCH v2] params: Add support for static keys

2025-05-13 Thread Kent Overstreet
Static keys can now be a module parameter, e.g. module_param_named(foo, foo.key, static_key_t, 0644) bcachefs is now using this. Cc: Luis Chamberlain Cc: Petr Pavlu Cc: Sami Tolvanen Cc: Daniel Gomez Cc: linux-modu...@vger.kernel.org Cc: Peter Zijlstra Cc: Josh Poimboeuf Cc: Jason Baron C