Use callout_halt, not callout_stop, for FreeBSD callout_drain shim.

Callers expect callout_drain will wait for it to complete if it has
fired.
This commit is contained in:
riastradh 2018-11-15 05:43:57 +00:00
parent 191d101a58
commit fe26b32950
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: zfs_context.h,v 1.19 2018/05/28 21:05:10 chs Exp $ */
/* $NetBSD: zfs_context.h,v 1.20 2018/11/15 05:43:57 riastradh Exp $ */
/*
* CDDL HEADER START
@ -789,7 +789,7 @@ void zfs_netbsd_setsize(vnode_t *, off_t);
#define getf fd_getfile
#define releasef fd_putfile
#define callout_drain(x) callout_stop(x)
#define callout_drain(x) callout_halt(x, NULL)
#endif /* _KERNEL */