[lkml]   [2001]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: struct page to 36 (or 64) bit bus address?

On Mon, 13 Aug 2001, David S. Miller wrote:

> From: Alan Cox <>
> Date: Mon, 13 Aug 2001 15:09:31 +0100 (BST)
> > To make sure we're on the same wave length, are you suggesting
> > this is the kind of thing we'd call in a callback from the PCI
> > DMA support layer?
> Well that would be an ugly layer violation, but how about
> scsi_retry_command_waitq(SCpnt, &dma_waitq)
> ?
> I don't mean "PCI DMA support layer knows scsi routines to
> call", rather I mean:
> ... register_new_scsi_host() ...
> add_notifier(&pci_dma_freespace_notifier, &host->dma_notifier_block);
> And net drivers would do something similar, registering something
> that will do "netdev_wake_queue();" etc.
> Also, the DMA support layer must either:
> 1) require users of it to provide a kernel thread in which
> to execute these things in the correct context
> 2) have a kernel thread of it's own to do this
> 3) or somehow else be able to accept this notification
> from any kind of execution context
> The notifier is capable of happening anywhere, anytime.
> Right?

That's the major problem if we ever want to preserve some ordering in the
queuing of SCSI IOs. It is not clear to me why a thread may help here. A
thread may help if you actually want to thread the queuing and/or if you
want to wait on resource. Note that using a thread for the queuing might
be a solution for preserving queuing ordering, but it is not the sole

Defunct T10/CAM addresses ordering problems especially during error
recovery by a freeze/unfreeze mechanism of device queues handled by SIMs
(SIMs are low-level drivers under Linux). Using threads, call-backs or any
other evil things on top of this mechanism can be a matter of O/S
dependent issues, but it is not the solution of the problem.

> Later,
> David S. Miller

Gérard P. Roudier


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.099 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site