kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* A doubt regarding submit_bio()
@ 2010-12-27 19:25 Gaurav Mahajan
  2010-12-29  7:20 ` Durga Prasad
  0 siblings, 1 reply; 2+ messages in thread
From: Gaurav Mahajan @ 2010-12-27 19:25 UTC (permalink / raw)
  To: kernelnewbies

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* A doubt regarding submit_bio()
  2010-12-27 19:25 A doubt regarding submit_bio() Gaurav Mahajan
@ 2010-12-29  7:20 ` Durga Prasad
  0 siblings, 0 replies; 2+ messages in thread
From: Durga Prasad @ 2010-12-29  7:20 UTC (permalink / raw)
  To: kernelnewbies

This works asynchronously. 
So you should __not__ expect the same ordering in execution of bio->bi_endio ()




________________________________
From: Gaurav Mahajan <gauravmahajan2007@gmail.com>
To: kernelnewbies <kernelnewbies@nl.linux.org>
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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-29  7:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-27 19:25 A doubt regarding submit_bio() Gaurav Mahajan
2010-12-29  7:20 ` Durga Prasad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).