]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - block/cfq-iosched.c
cfq-iosched: fix async oom queue handling
[karo-tx-linux.git] / block / cfq-iosched.c
index e91093d0c0eb3cf4217269c8d29948c802b247d5..baf0b706169dae1f56bec26fa8119d4d8bd0b169 100644 (file)
@@ -3751,7 +3751,7 @@ cfq_get_queue(struct cfq_data *cfqd, bool is_sync, struct cfq_io_cq *cic,
        /*
         * pin the queue now that it's allocated, scheduler exit will prune it
         */
-       if (!is_sync) {
+       if (!is_sync && cfqq != &cfqd->oom_cfqq) {
                cfqq->ref++;
                *async_cfqq = cfqq;
        }