<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>This works asynchronously.&nbsp;</div><div>So you should __not__ expect the same ordering in execution of bio-&gt;bi_endio ()</div><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Gaurav Mahajan &lt;gauravmahajan2007@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> kernelnewbies &lt;kernelnewbies@nl.linux.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, December 28, 2010 12:55:12 AM<br><b><span style="font-weight: bold;">Subject:</span></b> A doubt regarding submit_bio()<br></font><br>
Hello all,<br><br>I am working on a operation in which I need to assure the order of<br>bio_end_io() functions.<br>Consider the scenario,<br><br>If I submit two bio requests using submit_bio() function one after<br>another, then is there any guarantee that the bio_end_io() for the<br>bios will be invoked in the same order in which I submitted the bios?<br><br>Basically I mean to say, would the generic block layer or I/O<br>scheduler maintain the order of bios submitted to them?<br><br>Hoping for some help.<br><br>Regards,<br>Gaurav.<br><br>_______________________________________________<br>Kernelnewbies mailing list<br><a ymailto="mailto:Kernelnewbies@kernelnewbies.org" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br><span><a target="_blank" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a></span><br></div></div><div
 style="position:fixed"></div>


</div><br>

      </body></html>