[LIP] Asynchronous IO in kernel space

"Sathya Prakash V" <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
Hi All,
I am writing a RAM Disk and it is a kernel module and I want to back up the 
RAM disk data in to a IDE/SCSI Disk.
As of now I am using the blockdevice calls
getblk();
then memcpy my buffer to the buffer received by my buffer
and then calling
ll_rw_block()
and waiting for the completion
There are two problems I am facing one
1. Unnecessarily I am using buffer cache and there is on additional mem copy
2. If some other applications issues open for that device node I am getting 
error
"Invalidate:Busy Buffer"
and write for few blocks are failing

Any suggestions for skipping buffer cache/ proper way to write buffers from 
kernel
I tried to follow the kiobuffer approach but in which my driver thread 
blocks for the end_io function to wake up but the end io is not at all 
getting called

Any help is appreciated

TIA
Sathya

_________________________________________________________________
Millions of eligible singles.  
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Find the perfect 
match on BharatMatrimony.com



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
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.