Commit b312bab3 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by James Bottomley

[SCSI] tgt: use KMEM_CACHE macro

This uses new KMEM_CACHE() macro instead of kmem_cache_create directly
to simplify slab cache creation.
Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 423eef6f
...@@ -621,9 +621,7 @@ static int __init scsi_tgt_init(void) ...@@ -621,9 +621,7 @@ static int __init scsi_tgt_init(void)
{ {
int err; int err;
scsi_tgt_cmd_cache = kmem_cache_create("scsi_tgt_cmd", scsi_tgt_cmd_cache = KMEM_CACHE(scsi_tgt_cmd, 0);
sizeof(struct scsi_tgt_cmd),
0, 0, NULL);
if (!scsi_tgt_cmd_cache) if (!scsi_tgt_cmd_cache)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment