From: Linus Torvalds Date: Mon, 1 Oct 2007 20:17:28 +0000 (-0700) Subject: Fix possible splice() mmap_sem deadlock X-Git-Tag: v2.6.23-rc9~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75723957673bfa10c98b735259f891cc79cf0450;p=pandora-kernel.git Fix possible splice() mmap_sem deadlock Nick Piggin points out that splice isn't being good about the mmap semaphore: while two readers can nest inside each others, it does leave a possible deadlock if a writer (ie a new mmap()) comes in during that nesting. Original "just move the locking" patch by Nick, replaced by one by me based on an optimistic pagefault_disable(). And then Jens tested and updated that patch. Reported-by: Nick Piggin Tested-by: Jens Axboe Cc: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed