Content-Type: multipart/mixed; boundary="===============5057981412912719342==" MIME-Version: 1.0 From: fandahao17 at mail.ustc.edu.cn Subject: [SPDK] Question on How to Ensure Read-Write Ordering Date: Tue, 09 Feb 2021 10:09:39 +0000 Message-ID: <20210209100939.2958.11991@ml01.vlan13.01.org> List-ID: To: spdk@lists.01.org --===============5057981412912719342== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, there! I have a question regarding how read-write ordering is ensured in SPDK's Bl= obstore. As I understand, the Blobstore interface offers a filesystem-like = interface, which I think would guarantee all writes are seen by subsequent = reads, even though these reads are submitted before the write completes. However, when I go through the code I found Blobstore seems to directly sen= d the requests to the bdev layer, which asks the NVMe driver to issue the r= equest to the SSD. AFAIK, the NVMe controller doesn't guarantee command ord= ering (NVMe spec says, "if a Read is submitted for LBA x and there is a Wri= te also submitted for LBA x, there is no guarantee of the order of completi= on for those commands, the Read may finish first or the Write may finish fi= rst"). I wonder how Blobstore ensures all writes are seen by subsequent reads? If = Blobstore doesn't provide such guarantee, what is the usual way to ensure t= he ordering? Thanks! Regards, JInhao Fan University of Science and Technology of China --===============5057981412912719342==--