]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/scsi/storvsc_drv.c
udmabuf: separate out creating/destroying scatter-table
[linux.git] / drivers / scsi / storvsc_drv.c
index ed8b9ac805e6211ecb2c80570fb21e9531ece438..542d2bac2922c90b0f38ac637edbe60b04df78fc 100644 (file)
@@ -1837,8 +1837,7 @@ static int storvsc_probe(struct hv_device *device,
        /*
         * Set the number of HW queues we are supporting.
         */
-       if (stor_device->num_sc != 0)
-               host->nr_hw_queues = stor_device->num_sc + 1;
+       host->nr_hw_queues = num_present_cpus();
 
        /*
         * Set the error handler work queue.