Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1160710 > unrolled thread

Re: [PATCH 2/8] cfq-iosched: fix async oom queue handling

Started byJeff Moyer <jmoyer@redhat.com>
First post2015-06-08 20:50 +0200
Last post2015-06-08 20:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 2/8] cfq-iosched: fix async oom queue handling Jeff Moyer <jmoyer@redhat.com> - 2015-06-08 20:50 +0200

#1160710 — Re: [PATCH 2/8] cfq-iosched: fix async oom queue handling

FromJeff Moyer <jmoyer@redhat.com>
Date2015-06-08 20:50 +0200
SubjectRe: [PATCH 2/8] cfq-iosched: fix async oom queue handling
Message-ID<pzahr-7hT-9@gated-at.bofh.it>
Tejun Heo <tj@kernel.org> writes:

> Async cfqq's (cfq_queue's) are shared across cfq_data.  When
> cfq_get_queue() obtains a new queue from cfq_find_alloc_queue(), it
> stashes the pointer in cfq_data and reuses it from then on; however,
> the function doesn't consider that cfq_find_alloc_queue() may return
> the oom_cfqq under memory pressure and installs the returned queue
> unconditionally.
>
> If the oom_cfqq is installed as an async cfqq, cfq_set_request() will
> continue calling cfq_get_queue() hoping to replace it with a proper
> queue; however, cfq_get_queue() will keep returning the cached queue
> for the slot - the oom_cfqq.
>
> Fix it by skipping caching if the queue is the oom one.

Good catch.

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web