block, bfq: reset waker pointer with shared queues
[linux-2.6-microblaze.git] / block / bfq-iosched.c
index a273b2b..fedb0a8 100644 (file)
@@ -6165,11 +6165,13 @@ static void bfq_completed_request(struct bfq_queue *bfqq, struct bfq_data *bfqd)
         * of other queues. But a false waker will unjustly steal
         * bandwidth to its supposedly woken queue. So considering
         * also shared queues in the waking mechanism may cause more
-        * control troubles than throughput benefits. Then do not set
-        * last_completed_rq_bfqq to bfqq if bfqq is a shared queue.
+        * control troubles than throughput benefits. Then reset
+        * last_completed_rq_bfqq if bfqq is a shared queue.
         */
        if (!bfq_bfqq_coop(bfqq))
                bfqd->last_completed_rq_bfqq = bfqq;
+       else
+               bfqd->last_completed_rq_bfqq = NULL;
 
        /*
         * If we are waiting to discover whether the request pattern