From mboxrd@z Thu Jan 1 00:00:00 1970 From: writexdp@yahoo.com (Durga Prasad) Date: Tue, 28 Dec 2010 23:20:58 -0800 (PST) Subject: A doubt regarding submit_bio() In-Reply-To: References: Message-ID: <860842.24252.qm@web110815.mail.gq1.yahoo.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org This works asynchronously. So you should __not__ expect the same ordering in execution of bio->bi_endio () ________________________________ From: Gaurav Mahajan To: kernelnewbies Sent: Tue, December 28, 2010 12:55:12 AM Subject: A doubt regarding submit_bio() Hello all, I am working on a operation in which I need to assure the order of bio_end_io() functions. Consider the scenario, If I submit two bio requests using submit_bio() function one after another, then is there any guarantee that the bio_end_io() for the bios will be invoked in the same order in which I submitted the bios? Basically I mean to say, would the generic block layer or I/O scheduler maintain the order of bios submitted to them? Hoping for some help. Regards, Gaurav. _______________________________________________ Kernelnewbies mailing list Kernelnewbies at kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20101228/c57c3dca/attachment.html