From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5911615738421946783==" MIME-Version: 1.0 From: haris iqbal Subject: [SPDK] Confusion about in_submit_request for a bdev_io object Date: Wed, 07 Aug 2019 10:55:56 -0400 Message-ID: List-ID: To: spdk@lists.01.org --===============5911615738421946783== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I was looking into the bdev IO code path, and found this in_submit_request flag, which seems to have been set every time we do an IO submission, which makes sense considering the name of the flag. But, in the function _spdk_bdev_io_submit(), the flag in_submit_request is being set before the conditional "if" statement, and depending on the conditions of the statement, it can also call *_io_complete(). So, should the flag in_submit_request be set to true, while called the *_io_complete() function here? Also, can someone shed some more light on the significance of this in_submit_request flag. -- = With regards, Md Haris Iqbal, Contact: +91 8861996962 --===============5911615738421946783==--