From: Harshal S. <har...@gm...> - 2012-04-13 09:09:09
|
Hello All, I am curious about what will happen in this scenario? Scenario A: say suppose there are four commands pending in the worker threads queue (Which are enqued in predefined order). First worker thread comes and removes first command from the queue maintaining the right order but before submitting this command context switch happens and another worker thread will come and willsubmit next command to block layer. In this way is it possible that commands will be submitted/executed in out of order manner? And if it is happening then will it create any problem? Scenario B: Multiple commands are submitted to the block layer but when the callback returns last commands callback returned first and response is sent in reverse order.. Is it possible and if happens so then will it create any problem? -Harshal. |