Revert "scst: Enable copying to user space from an SGV cache"

This reverts commit 0c4f769c0e.
This commit is contained in:
Chesnokov Gleb
2021-12-15 16:50:06 +03:00
committed by Gleb Chesnokov
parent 37de84607c
commit 1efde3fe98

View File

@@ -1376,11 +1376,15 @@ static void sgv_pool_init_cache(struct sgv_pool *pool, int cache_num,
scnprintf(pool->cache_names[cache_num],
sizeof(pool->cache_names[cache_num]),
"%s-%uK", pool->name, (pages << PAGE_SHIFT) >> 10);
pool->caches[cache_num] = kmem_cache_create_usercopy(
pool->caches[cache_num] = kmem_cache_create(
pool->cache_names[cache_num], size,
/*align=*/0, per_cpu ? SCST_SLAB_FLAGS :
(SCST_SLAB_FLAGS|SLAB_HWCACHE_ALIGN),
/*useroffset=*/0, /*usersize=*/size, /*ctor=*/NULL);
0, per_cpu ? SCST_SLAB_FLAGS :
(SCST_SLAB_FLAGS|SLAB_HWCACHE_ALIGN), NULL
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23))
, NULL);
#else
);
#endif
return;
}