Re: [PATCH] remove name length check in a workqueue

Andreas Herrmann
2005-08-11T18:48:57Z

Simon Derr <Simon.Derr@bull.net> wrote:

> It is sufficient to have a few HBAs and to insmod/rmmod the driver a
few
> times.

> Since the host_no is choosen with a mere counter increment
> in scsi_host_alloc():

> shost->host_no = scsi_host_next_hn++; /* XXX(hch): still racy */

> Unused `host_no's are not reused and the 100 limit is reached even on
> smaller systems.

> I have no idea of why someone would do repeated insmod/rmmods, though.
> (But someone did).

You even don't have to use insmod/rmmod. On s390 (using zfcp) it
suffices to take adapters offline and online (triggered via VM,
hardware, or within Linux). Just do so about 100 times ... You
know the result.

Regards,

Andreas