Skip to content

Commit

Permalink
Merge branch 'refs/heads/upstream-HEAD' into repo-HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
Delphix Engineering committed May 5, 2023
2 parents 3c4b6a5 + 6fa6bb0 commit c7d5f72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 2 additions & 0 deletions module/zfs/zfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -7864,6 +7864,8 @@ zfs_kmod_fini(void)
zfs_onexit_destroy(zs->zs_onexit);
if (zs->zs_zevent)
zfs_zevent_destroy(zs->zs_zevent);
if (zs != &zfsdev_state_listhead)
kmem_free(zs, sizeof (zfsdev_state_t));
}

zfs_ereport_taskq_fini(); /* run before zfs_fini() on Linux */
Expand Down
11 changes: 2 additions & 9 deletions tests/zfs-tests/include/math.shlib
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ function verify_ne # <a> <b> <type>

# A simple function to get a random number between two bounds (inclusive)
#
# Probably not the most efficient for large ranges, but it's okay.
#
# Note since we're using $RANDOM, 32767 is the largest number we
# Note since we're using $RANDOM, $min+32767 is the largest number we
# can accept as the upper bound.
#
# $1 lower bound
Expand All @@ -129,11 +127,6 @@ function random_int_between
{
typeset -i min=$1
typeset -i max=$2
typeset -i rand=0

while [[ $rand -lt $min ]] ; do
rand=$(( $RANDOM % $max + 1))
done

echo $rand
echo $(( (RANDOM % (max - min + 1)) + min ))
}

0 comments on commit c7d5f72

Please sign in to comment.