From 3ed6cd492be8eb1599f96ac27dd6c0944694654e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Nov 2018 04:15:11 +0000 Subject: [PATCH] Merge r7430 from trunk git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7683 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/isert-scst/iser_global.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iscsi-scst/kernel/isert-scst/iser_global.c b/iscsi-scst/kernel/isert-scst/iser_global.c index fc64702cb..a7882c7b2 100644 --- a/iscsi-scst/kernel/isert-scst/iser_global.c +++ b/iscsi-scst/kernel/isert-scst/iser_global.c @@ -144,8 +144,10 @@ int isert_global_init(void) return -ENOMEM; } - isert_cmnd_cache = KMEM_CACHE_USERCOPY(isert_cmnd, - SCST_SLAB_FLAGS|SLAB_HWCACHE_ALIGN); + isert_cmnd_cache = kmem_cache_create_usercopy("isert_cmnd", + sizeof(struct isert_cmnd), __alignof__(struct isert_cmnd), + SCST_SLAB_FLAGS | SLAB_HWCACHE_ALIGN, + 0, sizeof(struct isert_cmnd), NULL); if (!isert_cmnd_cache) { destroy_workqueue(isert_glob.conn_wq); PRINT_ERROR("Failed to alloc iser command cache");