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.
From: SPDK [mailto:firstname.lastname@example.org] On Behalf Of Li Wang
Sent: Friday, November 17, 2017 11:04 AM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: [SPDK] Out-of-order completion of nvme command?
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?
SPDK mailing list