USB BULKOUT getting failed, due to deffered write to storage media

yogesh Sadhu <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
hi All,

I m confused with a strange behavior of flushing the data to a storage device via USB. Correct me if anywhere i m wrong.

my scenario is as follows:-
While transferring data from Host to target device. Data is not getting flushed
to storage device (SD card in my case) immediately packet by packet.

Its
getting queued in buffer cache in RAM and i hv observed pdflush daemon
that flushes data to disk. is getting called after i have transferred a sizable amount around 10mb+. then its starting to flush to storage
media.

here writing to media is a deffered call. Therefore i m
able to transfer small files. But while transfering (host to device)
bigger files the i m getting reset interrupt in between.

May if
i not wrong, data is getting flushed when dirty pages exceeds threshold, (can we modify it..). But as data
is getting queued up and there a difference between USB speed and media
speed, some where in VFS_write is taking more time to return there host
timesout and send reset.

I not getting where the problem lies in  USB driver, time out for pdflush, or SD driver. Pls  suggest something.. how i can make it work.

Thanks in advance.
Yogesh

_________________________________________________________________
Download the latest version of Windows Live Messenger NOW!
http://get.live.com/en-ie/messenger/overview
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.