]> git.proxmox.com Git - mirror_spl.git/commit - module/spl/spl-generic.c
Fix spl_hostid module parameter
authorChunwei Chen <tuxoko@gmail.com>
Fri, 23 Jan 2015 07:01:03 +0000 (15:01 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 5 Feb 2015 00:42:25 +0000 (16:42 -0800)
commit086476f92005506cb07e75f889e8ddb69026e842
tree063e06ba1ab295814d57caa06acf23b811d40fbe
parentc7db36a3c4ac768a74bd86778cc3535bdcb8d526
Fix spl_hostid module parameter

Currently, spl_hostid module parameter doesn't do anything, because it will
always be overwritten when calling into hostid_read().
Instead, we should only call into hostid_read() when spl_hostid is not zero,
just as the comment describes.

Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #427
module/spl/spl-generic.c