]> Pileus Git - ~andy/linux/blobdiff - block/blk-ioc.c
block: remove WARN_ON_ONCE() in exit_io_context()
[~andy/linux] / block / blk-ioc.c
index 33fae7df16a016d7ccbb0ccb6b3f78e47d9f0765..27a06e00eaec4312c5596ad58ebaa7fcc8c438ef 100644 (file)
@@ -230,9 +230,6 @@ void exit_io_context(struct task_struct *task)
 {
        struct io_context *ioc;
 
-       /* PF_EXITING prevents new io_context from being attached to @task */
-       WARN_ON_ONCE(!(current->flags & PF_EXITING));
-
        task_lock(task);
        ioc = task->io_context;
        task->io_context = NULL;