Skip to contentSkip to conversation

scsi: snic: Avoid creating two slab caches with the same name

PATCH Applied Pedro Falcato 2 participants 3 messages Aug 7, 2024 – Aug 17, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: snic: Avoid creating two slab caches with the same name

In the spirit of [1], fix the copy-paste typo and use unique names for both caches.

[1]: https://lore.kernel.org/all/[email protected]/

---
 drivers/scsi/snic/snic_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/snic/snic_main.c +1 -1
index cc824dcfe7d..abc78320c66 100644
@@ -873,7 +873,7 @@ snic_global_data_init(void)
 	snic_glob->req_cache[SNIC_REQ_CACHE_MAX_SGL] = cachep;
 
 	len = sizeof(struct snic_host_req);
-	cachep = kmem_cache_create("snic_req_maxsgl", len, SNIC_SG_DESC_ALIGN,
+	cachep = kmem_cache_create("snic_req_tm", len, SNIC_SG_DESC_ALIGN,
 				   SLAB_HWCACHE_ALIGN, NULL);
 	if (!cachep) {
 		SNIC_ERR("Failed to create snic tm req slab\n");
Signature · 1 line
2.46.0
#1 lore raw

Pedro,

Quoted 2 lines

In the spirit of [1], fix the copy-paste typo and use unique names for both caches.

Applied to 6.12/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering