diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-ioc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/blk-ioc.c b/block/blk-ioc.c index 33fae7df16a0..27a06e00eaec 100644 --- a/block/blk-ioc.c +++ b/block/blk-ioc.c | |||
@@ -230,9 +230,6 @@ void exit_io_context(struct task_struct *task) | |||
230 | { | 230 | { |
231 | struct io_context *ioc; | 231 | struct io_context *ioc; |
232 | 232 | ||
233 | /* PF_EXITING prevents new io_context from being attached to @task */ | ||
234 | WARN_ON_ONCE(!(current->flags & PF_EXITING)); | ||
235 | |||
236 | task_lock(task); | 233 | task_lock(task); |
237 | ioc = task->io_context; | 234 | ioc = task->io_context; |
238 | task->io_context = NULL; | 235 | task->io_context = NULL; |