[PATCHv2] nvme/hwmon: rework to avoid devm allocation
Enzo Matsumiya
ematsumiya at suse.de
Tue Jan 19 17:18:49 EST 2021
On 01/19, Hannes Reinecke wrote:
>The original design to use device-managed resource allocation
>doesn't really work as the NVMe controller has a vastly different
>lifetime than the hwmon sysfs attributes, causing warning about
>duplicate sysfs entries upon reconnection.
>This patch reworks the hwmon allocation to avoid device-managed
>resource allocation, and uses the NVMe controller as parent for
>the sysfs attributes.
Works fine on my NVMe-oF/TCP setup now. Thanks.
>Cc: Guenter Roeck <linux at roeck-us.net>
>Signed-off-by: Hannes Reinecke <hare at suse.de>
>Tested-by: Daniel Wagner <dwagner at suse.de>
Tested-by: Enzo Matsumiya <ematsumiya at suse.de>
Cheers,
Enzo
More information about the Linux-nvme
mailing list