From: Jens Axboe Date: Mon, 10 Jul 2006 09:00:01 +0000 (+0200) Subject: [PATCH] splice: fix problems with sys_tee() X-Git-Tag: v2.6.18-rc2~114^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aadd06e5c56b9ff5117ec77e59eada43dc46e2fc;p=pandora-kernel.git [PATCH] splice: fix problems with sys_tee() Several issues noticed/fixed: - We cannot reliably block in link_pipe() while holding both input and output mutexes. So do preparatory checks before locking down both mutexes and doing the link. - The ipipe->nrbufs vs i check was bad, because we could have dropped the ipipe lock in-between. This causes us to potentially look at unknown buffers if we were racing with someone else reading this pipe. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed