diff options
author | Tejun Heo <tj@kernel.org> | 2011-12-25 14:29:14 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2011-12-25 14:29:14 +0100 |
commit | fd63836811d6e5b5f5f608abf865bc9e91762c8c (patch) | |
tree | 9262ccdc0319b331c497701a851c8c5752dedb00 /block/cfq-iosched.c | |
parent | 64c42998f14d5894ea3138625897d620b30c8e4e (diff) | |
download | op-kernel-dev-fd63836811d6e5b5f5f608abf865bc9e91762c8c.zip op-kernel-dev-fd63836811d6e5b5f5f608abf865bc9e91762c8c.tar.gz |
block: an exiting task should be allowed to create io_context
While fixing io_context creation / task exit race condition,
6e736be7f2 "block: make ioc get/put interface more conventional and
fix race on alloction" also prevented an exiting (%PF_EXITING) task
from creating its own io_context. This is incorrect as exit path may
issue IOs, e.g. from exit_files(), and if those IOs are the first ones
issued by the task, io_context needs to be created to process the IOs.
Combined with the existing problem of io_context / io_cq creation
failure having the possibility of stalling IO, this problem results in
deterministic full IO lockup with certain workloads.
Fix it by allowing io_context creation regardless of %PF_EXITING for
%current.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Reported-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/cfq-iosched.c')
0 files changed, 0 insertions, 0 deletions