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.
> -----Original Message-----
> From: SPDK [mailto:email@example.com.
org] On Behalf Of Li Wang
> Sent: Friday, November 17, 2017 11:04 AM
> To: Storage Performance Development Kit <firstname.lastname@example.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?
> Li Wang
> SPDK mailing list
SPDK mailing list