Skip to content
  • Oleg Nesterov's avatar
    [PATCH] exit_io_context: don't disable irqs · 25034d7a
    Oleg Nesterov authored
    
    
    We don't need to disable irqs to clear current->io_context, it is protected
    by ->alloc_lock. Even IF it was possible to submit I/O from IRQ on behalf of
    current this irq_disable() can't help: current_io_context() will re-instantiate
    ->io_context after irq_enable().
    
    We don't need task_lock() or local_irq_disable() to clear ioc->task. This can't
    prevent other CPUs from playing with our io_context anyway.
    
    Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    25034d7a