Commit 606867443764edac5a2c542f2fa0a12ef7a7c7fd

Authored by James Bottomley
Committed by Linus Torvalds
1 parent 3462b92541

[PATCH] remove name length check in a workqueue

We have a chek in there to make sure that the name won't overflow
task_struct.comm[], but it's triggering for scsi with lots of HBAs, only
scsi is using single-threaded workqueues which don't append the "/%d"
anyway.

All too hard.  Just kill the BUG_ON.

Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>

[ kthread_create() uses vsnprintf() and limits the thing, so no
  actual overflow can actually happen regardless ]

Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

... ... @@ -308,8 +308,6 @@
308 308 struct workqueue_struct *wq;
309 309 struct task_struct *p;
310 310  
311   - BUG_ON(strlen(name) > 10);
312   -
313 311 wq = kmalloc(sizeof(*wq), GFP_KERNEL);
314 312 if (!wq)
315 313 return NULL;