Re: [PATCHv2] nvme/hwmon: rework to avoid devm allocation
From: Enzo Matsumiya <hidden>
Date: 2021-01-19 22:19:12
From: Enzo Matsumiya <hidden>
Date: 2021-01-19 22:19:12
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@roeck-us.net> Signed-off-by: Hannes Reinecke <hare@suse.de> Tested-by: Daniel Wagner <redacted>
Tested-by: Enzo Matsumiya <redacted> Cheers, Enzo _______________________________________________ Linux-nvme mailing list Linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme