Skip to content

Commit

Permalink
Restore reading Registry earlier to affect init
Browse files Browse the repository at this point in the history
Or the tunables for init are missed.

Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Oct 24, 2024
1 parent 8f1f2e8 commit f578243
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions module/os/windows/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ extern int zfs_kmod_init(void);
extern void zfs_kmod_fini(void);

extern void sysctl_os_init(PUNICODE_STRING RegistryPath);
extern void sysctl_os_all(PUNICODE_STRING RegistryPath);
extern void sysctl_os_fini(void);


Expand Down Expand Up @@ -131,9 +132,11 @@ DriverEntry(_In_ PDRIVER_OBJECT DriverObject,
zfs_flags |= 1;
#endif

spl_start(pRegistryPath);

sysctl_os_init(pRegistryPath);
// Process Registry once before init.
sysctl_os_all(pRegistryPath);

spl_start(pRegistryPath);

system_taskq_init();

Expand Down
2 changes: 1 addition & 1 deletion module/os/windows/spl/spl-vmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ vmem_xalloc(vmem_t *vmp, size_t size, size_t align_arg, size_t phase,
vaddr = ((vmem_ximport_t *)
vmp->vm_source_alloc)(vmp->vm_source,
&asize, align, vmflag & VM_KMFLAGS);
ASSERT(asize >= oasize);

ASSERT(P2PHASE(asize,
vmp->vm_source->vm_quantum) == 0);
ASSERT(!(vmp->vm_cflags & VMC_XALIGN) ||
Expand Down

0 comments on commit f578243

Please sign in to comment.