Hi Cunyin,

Thanks for your reply. It is helpful.

Li

On 17 November 2017 at 11:27, Chang, Cunyin <cunyin.chang@intel.com> wrote:
Hi Wang,

We use spdk_nvme_qpair_process_completions() to poll the completion commands, and we can "not"  assume that the commands finished in the
same order as they submitted. Which means if you submit commands A B C, they could be finished in any order.

-Cunyin

> -----Original Message-----
> From: SPDK [mailto:spdk-bounces@lists.01.org] On Behalf Of Li Wang
> Sent: Friday, November 17, 2017 11:04 AM
> To: Storage Performance Development Kit <spdk@lists.01.org>
> Subject: [SPDK] Out-of-order completion of nvme command?
>
> Hi guys,
>
> If I submit a set of read/write commands to a single queue pair using spdk
> nvme interface and call the process_completion() function afterwards, will
> the callback function be triggered in the same order as I submitted the
> commands? In other words, if I submit 3 IO commands, say C1, C2 and C3,
> with callback function F1, F2 and F3, respectively, will the sequence of
> callback function always be F1, F2 and F3?
>
> Regards,
> Li Wang
> _______________________________________________
> SPDK mailing list
> SPDK@lists.01.org
> https://lists.01.org/mailman/listinfo/spdk
_______________________________________________
SPDK mailing list
SPDK@lists.01.org
https://lists.01.org/mailman/listinfo/spdk