Wait for an IO to complete
Rishi Agrawal
rishi.b.agrawal at gmail.com
Fri Mar 28 13:46:30 EDT 2014
Hi All,
I want to wait in my code till the IO actually goes to the disk.
For example
struct buffer_head *bh=sb_bread(sb, 20)
strcpy(bh->b_data, "Some Data");
/* mark and sync */
mark_buffer_dirty(bh);
sync_dirty_buffer(bh);
The above code only adds the bh to the request queue and returns.
I need something
write_buffer_to_disk(bh)
Which will return only if the data has been written on disk.
Please help
--
Regards,
Rishi Agrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140328/086f3109/attachment.html
More information about the Kernelnewbies
mailing list