Open lundman opened 3 years ago
Later commits done in spl-proc_list.c/procfs_list_destroy() could resolve this issue?
I think it is a bit racey, between mutex_exit and destroy. I've not come across it in quite a while, so hoping other things fixed it. Have you come across it?
I have not come across this issue anytime. Thanks.
In kstat_install() and kstat_delete() there is below check where there is no corresponding kstat_release(). Can there be any chance that kstat_hold_bykid() returns some another not null ksp?
if (kstat_hold_bykid(ksp->ks_kid, zoneid) != ksp) { cmn_err(CE_WARN, "kstat_delete(%p): does not exist", (void *)ksp); return; }
I had a deadlock with
zpool import -d c:/src/diskimage.bin funk
with the stack:Where we are stuck here:
e->e_owner
is the value of curthread already, so it is waiting for ourselves to wake us up. This could suggest a leak in kstat_hold somewhere,. perhaps from procfs_list_destroy - code we got from FreeBSD. Check and see if they have fixed anything in this area.