Content-Type: multipart/mixed; boundary="===============2454105892219370301==" MIME-Version: 1.0 From: liushengchao02 at meituan.com Subject: [SPDK] Some questions about SPDK bdev module Date: Thu, 10 Feb 2022 03:18:15 +0000 Message-ID: <20220210031815.3721.30419@ml01.vlan13.01.org> List-ID: To: spdk@lists.01.org --===============2454105892219370301== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I have read the source code of SPDK and implemented my own bdev module by r= eferencing official bdev modules like null, malloc and aio. But I still hav= e some questions and hope someone can explain. 1.When a bdev is deleted, the 'destruct' function pointer of spdk_bdev_fn_t= able is called and the block device is closed. I find that ongoing spdk_bde= v_io is not explicitly completed by calling spdk_bdev_io_complete(). Are th= ese spdk_bdev_io cleaned automatically by SPDK framework? 2.How to write the json config that corresponds to the rpc call of 'log_set= _flag'? I have tried many ways but still can not work and I have to impleme= nt my own version of rpc call in my own bdev module to enable json config. Thanks! --===============2454105892219370301==--