Skip to content

Commit

Permalink
Restore missing tsd set for zpool events
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Jul 20, 2023
1 parent f3eadcb commit 352c2cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/os/windows/zfs/zfs_ioctl_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,9 @@ zfsdev_open(dev_t dev, PIRP Irp)
error = zfsdev_state_init((void *)dev);
mutex_exit(&zfsdev_state_lock);

/* Store this dev_t in tsd, so zfs_get_private() can retrieve it */
tsd_set(zfsdev_private_tsd, (void *)(uintptr_t)dev);

return (-error);
}

Expand Down

0 comments on commit 352c2cc

Please sign in to comment.