[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 12/14] xen-blkback: safely unmap grants in case they are still in use

@@ -982,6 +1075,9 @@ static void __end_block_io_op(struct pending_req 
*pending_req, int error)
         * the grant references associated with 'request' and provide
         * the proper response on the ring.
+       if (atomic_dec_and_test(&pending_req->pendcnt))
+               xen_blkbk_unmap_and_respond(pending_req);
        if (atomic_dec_and_test(&pending_req->pendcnt)) {

Didn't code in this block go into xen_blkbk_unmap_and_respond_callback() and so it needs to be removed here?


                struct xen_blkif *blkif = pending_req->blkif;

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.