Re: [RFC PATCH] Multi-threaded device probing

Stefan Richter
2006-07-26T00:10:10Z

James Courtier-Dutton wrote:
> What happens about the logging?
> Surely one would want the output from one probe to be output into the
> log as a block, and not mix the output from multiple simultaneous probes.

Use single-line printks were possible, or mutex-protected multiline
blocks where you really can't do without multiple lines of printks that
really cannot be separated. (Don't perform time consuming functions
within those mutexes; that would defeat the multithreaded probing...)

To adjust printks is only the beginning of what is to be done to adapt
single-threaded bus probes to multithreaded ones. There may be hidden
assumptions that rely on single-threaded execution.
--
Stefan Richter
-=====-=-==- -=== ==-=-