Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP
*** 3367,3379 ****
* -allocate 1/2 the property size, the zfs property
* is 8k in size and stored as ascii hex string, all
* we needed is 4k buffer to store the binary data.
* -initialize reader/write lock
*/
! if ((sl->sl_zfs_meta = kmem_zalloc(ZAP_MAXVALUELEN / 2, KM_SLEEP))
! == NULL)
! return (SBD_FAILURE);
rw_init(&sl->sl_zfs_meta_lock, NULL, RW_DRIVER, NULL);
return (SBD_SUCCESS);
}
char
--- 3367,3377 ----
* -allocate 1/2 the property size, the zfs property
* is 8k in size and stored as ascii hex string, all
* we needed is 4k buffer to store the binary data.
* -initialize reader/write lock
*/
! sl->sl_zfs_meta = kmem_zalloc(ZAP_MAXVALUELEN / 2, KM_SLEEP);
rw_init(&sl->sl_zfs_meta_lock, NULL, RW_DRIVER, NULL);
return (SBD_SUCCESS);
}
char