<div dir="ltr"><div><div><div><div><div><div><div>Hi All,<br><br></div>I want to wait in my code till the IO actually goes to the disk.<br><br></div>For example <br><br></div>struct buffer_head *bh=sb_bread(sb, 20)<br><br>

</div>strcpy(bh-&gt;b_data, &quot;Some Data&quot;);<br><br></div>/* mark and sync */<br></div>mark_buffer_dirty(bh);<br></div>sync_dirty_buffer(bh);<br clear="all"><div><div><div><div><div><div><div><div><div><br></div><div>

The above code only adds the bh to the request queue and returns.<br><br></div><div>I need something<br><br></div><div>write_buffer_to_disk(bh)<br><br></div><div>Which will return only if the data has been written on disk.<br>

<br></div><div>Please help<br></div><div>-- <br><br>Regards,<br>Rishi Agrawal<br>
</div></div></div></div></div></div></div></div></div></div>