mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-31 11:14:09 +03:00
- Remapped ldi_handle_t to struct block_device * which is much more useful
- Added liunx block device headers to sunldi.h - Made __taskq_dispatch safe for interrupt context where it turns out we need to be useing it. - Fixed NULL const/dest bug for kmem slab caches - Places debug __dprintf debugging messages under a spin_lock_irqsave so it's safe to use then in interrupt handlers. For debugging only! git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@64 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
@@ -117,7 +117,9 @@ kmem_cache_generic_constructor(void *ptr, kmem_cache_t *cache, unsigned long fla
|
||||
kcc = kmem_cache_find_cache_cb(cache);
|
||||
BUG_ON(!kcc);
|
||||
|
||||
kcc->kcc_constructor(ptr, kcc->kcc_private, (int)flags);
|
||||
if (kcc->kcc_constructor)
|
||||
kcc->kcc_constructor(ptr, kcc->kcc_private, (int)flags);
|
||||
|
||||
spin_unlock(&kmem_cache_cb_lock);
|
||||
/* Linux constructor has no return code, silently eat it */
|
||||
}
|
||||
@@ -134,7 +136,9 @@ kmem_cache_generic_destructor(void *ptr, kmem_cache_t *cache, unsigned long flag
|
||||
BUG_ON(!kcc);
|
||||
|
||||
/* Solaris destructor takes no flags, silently eat them */
|
||||
kcc->kcc_destructor(ptr, kcc->kcc_private);
|
||||
if (kcc->kcc_destructor)
|
||||
kcc->kcc_destructor(ptr, kcc->kcc_private);
|
||||
|
||||
spin_unlock(&kmem_cache_cb_lock);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user