[SCSI] qla2xxx: Unload hangs after issuing BSG commands to vport.
[deliverable/linux.git] / drivers / scsi / qla2xxx / qla_os.c
index 9e3ae1d8de513a46a91289def9b547361718efc8..33fb2178eb4d4c32770962244281f2b286b2f22c 100644 (file)
@@ -630,7 +630,7 @@ qla2x00_sp_free_dma(void *vha, void *ptr)
        }
 
        CMD_SP(cmd) = NULL;
-       mempool_free(sp, ha->srb_mempool);
+       qla2x00_rel_sp(sp->fcport->vha, sp);
 }
 
 static void
@@ -718,7 +718,7 @@ qla2xxx_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
                goto qc24_target_busy;
        }
 
-       sp = qla2x00_get_sp(base_vha, fcport, GFP_ATOMIC);
+       sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
        if (!sp) {
                set_bit(HOST_RAMP_DOWN_QUEUE_DEPTH, &vha->dpc_flags);
                goto qc24_host_busy;
This page took 0.02631 seconds and 5 git commands to generate.