Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2019 10:49:14 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r353625 - in head/cddl/contrib/opensolaris/lib/libzpool/common: . sys
Message-ID:  <20191016074914.GE73312@kib.kiev.ua>
In-Reply-To: <201910160741.x9G7fYJo022675@repo.freebsd.org>
References:  <201910160741.x9G7fYJo022675@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 16, 2019 at 07:41:34AM +0000, Andriy Gapon wrote:
> Author: avg
> Date: Wed Oct 16 07:41:33 2019
> New Revision: 353625
> URL: https://svnweb.freebsd.org/changeset/base/353625
> 
> Log:
>   zfs: add a lame emulation of cv_wait_sig(9) in userland to fix r353618
>   
>   Not sure if we need anything better.
>   Maybe we should try to port illumos libfakekernel or provide something
>   similar natively.
>   
>   MFC after:	4 weeks
>   X-MFC with:	r353618
> 
> Modified:
>   head/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
>   head/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h
> 
> Modified: head/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
> ==============================================================================
> --- head/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c	Wed Oct 16 07:20:59 2019	(r353624)
> +++ head/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c	Wed Oct 16 07:41:33 2019	(r353625)
> @@ -321,6 +321,18 @@ cv_wait(kcondvar_t *cv, kmutex_t *mp)
>  	mp->m_owner = curthread;
>  }
>  
> +/*
> + * NB: this emulates FreeBSD cv_wait_sig(9), not the illumos one.
> + * Meanings of the return code is different.
> + * NB: this does not actually catch any siganls.
s/siganls/signals/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191016074914.GE73312>