Re: When must the io_request_lock be held?

Patrick Mansfield
2002-08-07T16:55:32Z

On Wed, Aug 07, 2002 at 12:18:46PM -0400, Doug Ledford wrote:

> Again, if Marcello takes my patch, this will become easier as well since
> it adds a host->lock lock that allows you to get your driver off the
> horrible io_request_lock once and for all. (Note: I may have to change
> the name to host->host_lock to make it match 2.5, but that just annoys the
> hell out of me because I *detest* totally redundant names like that...)

Such code looks a bit odd, but I would rather have it and be able to
more easily find or audit all the references; using cscope, there
are about 6700 references to lock in the 2.5 kernel (only looking at
i386 sources, so there are probably more), and about 300 references to
host_lock.

-- Patrick Mansfield