lkml.org 
[lkml]   [2005]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateTue, 09 Aug 2005 15:24:33 +0200
FromFrederic TEMPORELLI <>
Subjectmax workqueue name length
Hello,


When creating a workqueue, workqueue name is limited to 10 chars
(kernel/workqueue.c , function is __create_workqueue, test is done in a BUG_ON).

Why has this length be limited to 10 chars ?
Can I safely increase this max length (13 chars should be enough...) ?



Some comments about these questions:

In SCSI layer, HBA kernel ID is incremented after each modprobe/rmmod.

Then, when a scsi driver is managing a working queue and HBA kernel ID is
greater than 99 (let's assume that you have modprobe/rmmod the scsi driver to
get this ID to 99, or you may have play with 'scsi_debug' module), an oops is
generated when loading again the driver (and the driver is frozen).

This is because working queue name format is "scsi_wq_%d" (drivers/scsi/hosts.c
, function scsi_add_host, %d is the HBA ID), and so working queue name length is
greater than 10 chars when HBA kernel ID is > 99...

Best regards


--
Frederic TEMPORELLI
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-08-09 15:27    [from the cache]
©2003-2010