On Thu, 24 Feb 2000, Alan Cox wrote:

> > do lots more stuff
> > call the scsi_done() function
> 
> Do you call scsi_done holding the io_request lock ?

I don't think so.  At least, I never explicitly request this lock.  Is
someone else requesting it for me?

> > And, while I'm writting this, is there some generic kernel queuing code
> > that I can use somewhere?  i.e. something that allows me to declare a
> 
> The sk_buff code has some examples of generic irq safe queueing code. It
> basically does
> 
> add_
>       spin_lock_irqsave(&queue_lock, flags);
>       item->next=NULL;
>       queue->tail=item;
>       spin_unlock_irqrestore(queue_lock, flags)
> 
> etc. and spinlocks very short pieces of code.

I've seen this sort of construction before, but there is no clear
documentation on exactly how to use spin locks, or what the parameters
mean.  Could you shed some light on the subject?  Also, this looks like it
just protects the data structure without giving me a way to block a thread
on queue input.  Is that the case, or am I reading it wrong?

Matt Dharm

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Engineer, Qualcomm, Inc.                         Work: [EMAIL PROTECTED]

Somebody call an exorcist!
                                        -- Dust Puppy
User Friendly, 5/16/1998


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to