]> err.no Git - linux-2.6/blobdiff - drivers/block/ll_rw_blk.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq
[linux-2.6] / drivers / block / ll_rw_blk.c
index 1197462bb6bae32d2f50d0091abe20e6bfbd7cb2..692a5fced76e448819f4e649cd5576a066deae4f 100644 (file)
@@ -1917,10 +1917,9 @@ get_rq:
         * limit of requests, otherwise we could have thousands of requests
         * allocated with any setting of ->nr_requests
         */
-       if (rl->count[rw] >= (3 * q->nr_requests / 2)) {
-               spin_unlock_irq(q->queue_lock);
+       if (rl->count[rw] >= (3 * q->nr_requests / 2))
                goto out;
-       }
+
        rl->count[rw]++;
        rl->starved[rw] = 0;
        if (rl->count[rw] >= queue_congestion_on_threshold(q))