mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user