diff options
author | Tejun Heo | 2015-08-18 14:54:58 -0700 |
---|---|---|
committer | Jens Axboe | 2015-08-18 15:49:15 -0700 |
commit | 95e5d6f62693f27d9011ec307eb32c6126314ea3 (patch) | |
tree | 4b30989af492f003a7bdb9534951f47f5341273d /net/nfc | |
parent | 4ebc1c61d6185604c97fd0b0355ab668052044ab (diff) |
cfq-iosched: fix async oom queue handling
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.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Arianna Avanzini <avanzini.arianna@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'net/nfc')
0 files changed, 0 insertions, 0 deletions