[rds-devel] [PATCH RFC v1] Feature reporting of RDS driver.
Tejun Heo
tj at kernel.org
Mon Jun 16 17:45:05 UTC 2025
Hello,
On Tue, Jun 10, 2025 at 07:15:31PM -0400, Konrad Rzeszutek Wilk wrote:
...
> > That said, the sysfs approach is pretty straightforward and has worked well
> > for us. One thing which we didn't do (yet) but maybe useful is defining some
> > conventions to tell whether a given feature or option should be enabled by
> > default so that most users don't have to know which features to use and
> > follow whatever the kernel release thinks is the best default combination.
>
> I see. With that in mind, would it have helped if each feature had its
> own sysfs file with a tri-state or such?
I don't see why that wouldn't work but maybe a bit too elaborate?
> In regards to the existing 'feature' sysfs attribute:
>
> How were you thinking to address API/ABI semantic breakage? Say older
> versions implemented a "foobar" feature but never kernels implement a
> much better way, but with a change the semantics (say require extra parameters,
> etc). Would you expose both of them via the 'feature' sysfs attribute: "foobar\nfoobar_v2" ?
>
> What would be then the path for removing the old one? Would you just
> drop "foobar" and only expose "foobar_v2" ?
I don't think there's one good answer but here's one:
- Each token in the files represents an optional feature.
- A feature preceded by + is expected to be enabled (or used) by default. A
feature preced by - is expected to be not used.
- When introducing v2, make v2 +, the old one -.
- After users are reasoanbly migrated, start generating warning on v1 usages.
- Remove v1.
Thanks.
--
tejun
More information about the rds-devel
mailing list