/* Commit the current L2 table to the cache  */
static void qed_commit_l2_update(void *opaque, int ret)
/* Commit the current L2 table to the cache  */
static void qed_commit_l2_update(void *opaque, int ret)
{
    QEDAIOCB *acb = opaque;
    BDRVQEDState *s = acb_to_s(acb);
    CachedL2Table *l2_table = acb->request.l2_table;
    uint64_t l2_offset = l2_table->offset;
    qed_commit_l2_cache_entry(&s->l2_cache, l2_table);
    acb->request.l2_table = qed_find_l2_cache_entry(&s->l2_cache, l2_offset);
    assert(acb->request.l2_table != NULL);
    qed_aio_next_io(opaque, ret);
}