[PATCH 5/9] nvme: split off TLS sysfs attributes into a separate group
Christoph Hellwig
hch at lst.de
Wed Jul 24 06:41:06 PDT 2024
On Tue, Jul 23, 2024 at 07:29:59PM +0200, Hannes Reinecke wrote:
>> I would have also kinda expected that this attribute group lives in
>> tcp.c, is there a good reason to keep it in the core code?
>>
> I knew this argument would be coming.
> Thing is: these options depend on CONFIG_NVME_TCP_TLS, so
> they will always be encapsulated in some #ifdef, be it in sysfs.c
> or in tcp.c.
I don't really mind the ifdefs per se. It's just that we'll have
this code built into nvme-core.ko for common kernel setups where no
one uses nvme-tcp at all.
> And as we always will have to have an #ifdef in one of the files
> I thought it easier to keep it in sysfs.c, and save us having to
> have an exported attribute_group which might even be empty.
I'm ok with this series of fixes going forward without it for now,
but in the long run I'd like to keep the core code as lean as
possible.
More information about the Linux-nvme
mailing list