Re: [PATCH] scsi_set_host_offline (resend)

Mike Anderson
2003-03-25T23:29:21Z

James Bottomley [James.Bottomley@steeleye.com] wrote:
> >
> > The bus_for_each solution currently use a rw sema which I thought would
> > not be a good choice for these type of operations as there is a
> > possibility that we may want to call functions (offline) in interrupt
> > context.
>
> Well...I think it's not too much of a stretch to require that additions
> to the device list be done only from user context (initial inquiry does
> that, as does scsi add/remove-single-device), so a sema can be made OK
> here.

I thought we where looking at a solution for all traversals of the list?
There are currently ~52 refs to my_devices, while some traversals can be
evalutated and possibly removed there maybe valid ones that happen
without user context.

-andmike
--
Michael Anderson
andmike@us.ibm.com