sess and tgt structures are read-mostly, so don't need cache alignment

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-03-26 21:34:53 +00:00
parent 9fe9158574
commit e38c450819
+4 -2
View File
@@ -6611,13 +6611,15 @@ static int __init q2t_init(void)
goto out;
}
q2t_sess_cachep = KMEM_CACHE(q2t_sess, SCST_SLAB_FLAGS|SLAB_HWCACHE_ALIGN);
/* it's read-mostly */
q2t_sess_cachep = KMEM_CACHE(q2t_sess, SCST_SLAB_FLAGS);
if (q2t_sess_cachep == NULL) {
res = -ENOMEM;
goto out_cmd_free;
}
q2t_tgt_cachep = KMEM_CACHE(q2t_tgt, SCST_SLAB_FLAGS|SLAB_HWCACHE_ALIGN);
/* it's read-mostly */
q2t_tgt_cachep = KMEM_CACHE(q2t_tgt, SCST_SLAB_FLAGS);
if (q2t_tgt_cachep == NULL) {
res = -ENOMEM;
goto out_sess_free;