Re: IDE locking problem

From: Jens Axboe (axboe@suse.de)
Date: Mon Aug 04 2003 - 00:40:20 EST


On Sun, Aug 03 2003, Lou Langholtz wrote:
> Benjamin Herrenschmidt wrote:
>
> >>The last step is bad - sooner or later the queue will be kfreed, and if
> >>there are bozos around that still have references, they would access
> >>random memory. It must be guaranteed that all references expired before
> >>the tear down begins. Just leaving a dead flag set is not sufficient.
> >>
> >>
> >Jens ? I see no refcounting of the queue,. . .
> >
> struct request_queue's kobj field perhaps?

Queue still needs dynamically allocated for this to work, and it isn't.
This is one of Al's projects, but he seems to be busy and/or away. It's
pretty straight forward but pretty massive change, wonder if Linus could
be talked into it...

-- 
Jens Axboe

- 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/



This archive was generated by hypermail 2b29 : Thu Aug 07 2003 - 22:00:22 EST