From: Oleg Nesterov Date: Tue, 29 Aug 2006 07:15:14 +0000 (+0200) Subject: [PATCH] exit_io_context: don't disable irqs X-Git-Tag: v2.6.19-rc1~640^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25034d7a83cf77667f3d65822484b305d4be6b25;p=pandora-kernel.git [PATCH] exit_io_context: don't disable irqs 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: Oleg Nesterov Signed-off-by: Jens Axboe --- Reading git-diff-tree failed