Re: [PATCH v2] hw/nvme: add missing return statement

2022-04-18 Thread Klaus Jensen
On Apr 15 23:48, Dmitry Tikhov wrote: > Since there is no return after nvme_dsm_cb invocation, metadata > associated with non-zero block range is currently zeroed. Also this > behaviour leads to segfault since we schedule iocb->bh two times. > First when entering nvme_dsm_cb with iocb->idx ==

[PATCH v2] hw/nvme: add missing return statement

2022-04-15 Thread Dmitry Tikhov
Since there is no return after nvme_dsm_cb invocation, metadata associated with non-zero block range is currently zeroed. Also this behaviour leads to segfault since we schedule iocb->bh two times. First when entering nvme_dsm_cb with iocb->idx == iocb->nr and second because of missing return on