Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2015 07:21:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 202358] [patch] [zfs] fix possible assert fail in sa_handle_get_from_db()
Message-ID:  <bug-202358-3630-tbLrlHIdDa@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-202358-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-202358-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202358

Andriy Gapon <avg@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gibbs@FreeBSD.org,
                   |                            |mav@FreeBSD.org

--- Comment #1 from Andriy Gapon <avg@FreeBSD.org> ---
(In reply to luke.tw from comment #0)
I think that you correctly identified the problem.  And what you describe seems
to be only the part of the problem.  It seems that illumos kmem cache API is
used incorrectly for sa_cache.  Its usage resembles how FreeBSD uma(9) could be
used and that almost works with FreeBSD's emulation of kmem cache.
The difference is that kmem_cache_create() is not as flexible as uma_create():
whereas the latter supports two ways of initialization an object - via
init/fini and constructor/destructor, the former has only
constructor/destructor support:
http://illumos.org/man/9F/kmem_cache_create
But the kmem cache's constructor and destructor work similarly to how the init
and fini work in uma(9).  And, apparently, that is a source of the confusion
here.
I am surprised that there are no bug reports about this API misuse from illumos
users yet.

It seems that the problem was introduced as a part of bigger changes in base
r286575 which is an import of
illumos/illumos-gate@bc9014e6a81272073b9854d9f65dd59e18d18c35

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202358-3630-tbLrlHIdDa>