Skip to contentSkip to conversation

Why do I see reads when writing to the disk?

DISCUSSION Alex Bennee 1 participant 1 message Feb 26, 2004 libata

lore
Share & tools
lore
#0 lore raw

Hi,

I've been adding DMA support to my IDE driver. I've gotten DMA Read working fine but I've been having problems getting DMA writes working. In the process of debugging I've noticed what seems like odd behaviour.

I'm doing writes straight to the disk with a:

dd if=testfile of=/dev/hda

testfile resides on NFS, nothing is mounted on disks yet.

However I see 8 dma_read operations before the dma_write operation. Why is this? Am I missing some subtle point with the system cache or something?

Please cc any responses to me as I don't seem to be able to subscribe to the ide list.

Cheers,

Signature · 2 lines
Alex, homepage: http://www.bennee.com/~alex/
He who laughs last -- missed the punch line.