mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* DMA_NONE data_direction in scsi
@ 2003-11-17 19:25 Guennadi Liakhovetski
  2003-11-17 20:01 ` Guennadi Liakhovetski
  2003-11-18  9:46 ` Christoph Hellwig
  0 siblings, 2 replies; 3+ messages in thread
From: Guennadi Liakhovetski @ 2003-11-17 19:25 UTC (permalink / raw)
  To: linux-kernel

Hello

While trying to fix tmscsim for 2.6, I've arrived at the Oops below, which
is caused by the BUG_ON() in dma_map_page(). In the backtrace below,
data_direction is set to DMA_BIDIRECTIONAL in sd_revalidate_disk(),

                sreq->sr_data_direction = DMA_BIDIRECTIONAL;

, but already in sd_spinup_disk() it is reset to DMA_NONE:

                        SRpnt->sr_data_direction = DMA_NONE;

So, the question is: is this the correct behaviour, and, if so - how is
the driver supposed to map this request - which direction to pass to
dma_map_*?

Thanks
Guennadi
---
Guennadi Liakhovetski


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-18  9:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-17 19:25 DMA_NONE data_direction in scsi Guennadi Liakhovetski
2003-11-17 20:01 ` Guennadi Liakhovetski
2003-11-18  9:46 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®