]> git.proxmox.com Git - mirror_zfs.git/commit
Don't cache the system hostid
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 10 Jul 2017 19:24:52 +0000 (15:24 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 13 Jul 2017 17:22:28 +0000 (13:22 -0400)
commitc93d9dff36470434a3677225b820c14986075706
treef484dd6d44c7cca5415b492179afc0131089265f
parentdfbd813ec7b452884f91f134b82f30c6bdcd670c
Don't cache the system hostid

Historically the SPL cached the system hostid the first time it
was accessed.  This was done to speed up subsequent accesses.
But in practice the system host id is rarely accessed and its
inconvenient that it doesn't promptly detect /etc/hostid
configuration changes.  Therefore, zone_get_hostid() has been
updated to always refresh the system hostid reported.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #626
module/spl/spl-generic.c
module/spl/spl-proc.c