]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Revert "bnx2fc: scsi_dma_unmap() not invoked on IO completions"
authorBob Picco <bob.picco@oracle.com>
Tue, 31 Jan 2012 19:45:51 +0000 (14:45 -0500)
committerBob Picco <bob.picco@oracle.com>
Thu, 2 Feb 2012 23:03:23 +0000 (18:03 -0500)
This reverts commit e70f61eb1c6ac5048edfd214a72e10c434127931.

drivers/scsi/bnx2fc/bnx2fc_io.c

index 454c72cdafbc8d9dae6df6ce63b4845fdaf78693..b5b5c346d7793b352066409ce85364e00c1b0ffa 100644 (file)
@@ -1734,6 +1734,7 @@ void bnx2fc_process_scsi_cmd_compl(struct bnx2fc_cmd *io_req,
                printk(KERN_ERR PFX "SCp.ptr is NULL\n");
                return;
        }
+       io_req->sc_cmd = NULL;
 
        if (io_req->on_active_queue) {
                list_del_init(&io_req->link);
@@ -1753,7 +1754,6 @@ void bnx2fc_process_scsi_cmd_compl(struct bnx2fc_cmd *io_req,
        }
 
        bnx2fc_unmap_sg_list(io_req);
-       io_req->sc_cmd = NULL;
 
        switch (io_req->fcp_status) {
        case FC_GOOD: