aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zgenhostid
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2020-11-14 10:19:00 -0800
committerGitHub <[email protected]>2020-11-14 10:19:00 -0800
commit4352edaafb5fba9b98b6ac4987b576bbc333f68a (patch)
tree52f7865e8fe97b5ad6d8da2b9ac922f0be5025b6 /cmd/zgenhostid
parentd66aab7c081274c97b785cdc9033456c493ca6b1 (diff)
Linux: Fix ZFS_ENTER/ZFS_EXIT/ZFS_VERFY_ZP usage
The ZFS_ENTER/ZFS_EXIT/ZFS_VERFY_ZP macros should not be used in the Linux zpl_*.c source files. They return a positive error value which is correct for the common code, but not for the Linux specific kernel code which expects a negative return value. The ZPL_ENTER/ZPL_EXIT/ZPL_VERFY_ZP macros should be used instead. Furthermore, the ZPL_EXIT macro has been updated to not call the zfs_exit_fs() function. This prevents a possible deadlock which can occur when a snapshot is automatically unmounted because the zpl_show_devname() must never wait on in progress automatic snapshot unmounts. Reviewed-by: Adam Moss <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #11169 Closes #11201
Diffstat (limited to 'cmd/zgenhostid')
0 files changed, 0 insertions, 0 deletions