zfs/module/os
Rob Norris e31ed02433 linux/kstat: replace existing kstat if name is reused
Previously, if a kstat proc name already existed, the old one would be
kept. This makes it so the old one is discarded and the new one kept.

Arguably, a collision like this shouldn't ever happen, but during
import multiple vdev_t (and so vdev_queue_t, and so vdev_queue stats)
can exist at the same time for the same guid. There's no real way to
tell which is which without substantial refactoring in the import and
vdev init codepaths, whch is probably worthwhile but not for today.

Sponsored-by: Klara, Inc.
Sponsored-by: Syneto
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
2024-05-22 09:42:20 +10:00
..
freebsd FreeBSD: Add zfs_link_create() error handling 2024-05-16 17:56:55 -07:00
linux linux/kstat: replace existing kstat if name is reused 2024-05-22 09:42:20 +10:00