Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: esas2r: Simplify an alloc_ordered_workqueue() invocation

Let alloc_ordered_workqueue() format the workqueue name instead of calling
snprintf() explicitly.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240822195944.654691-6-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
4cb1b41a 70fbb7c1

+2 -5
-1
drivers/scsi/esas2r/esas2r.h
··· 929 929 struct list_head fw_event_list; 930 930 spinlock_t fw_event_lock; 931 931 u8 fw_events_off; /* if '1', then ignore events */ 932 - char fw_event_q_name[ESAS2R_KOBJ_NAME_LEN]; 933 932 /* 934 933 * intr_mode stores the interrupt mode currently being used by this 935 934 * adapter. it is based on the interrupt_mode module parameter, but
+2 -4
drivers/scsi/esas2r/esas2r_init.c
··· 311 311 sema_init(&a->nvram_semaphore, 1); 312 312 313 313 esas2r_fw_event_off(a); 314 - snprintf(a->fw_event_q_name, ESAS2R_KOBJ_NAME_LEN, "esas2r/%d", 315 - a->index); 316 - a->fw_event_q = alloc_ordered_workqueue("%s", WQ_MEM_RECLAIM, 317 - a->fw_event_q_name); 314 + a->fw_event_q = 315 + alloc_ordered_workqueue("esas2r/%d", WQ_MEM_RECLAIM, a->index); 318 316 319 317 init_waitqueue_head(&a->buffered_ioctl_waiter); 320 318 init_waitqueue_head(&a->nvram_waiter);