Searched hist:aadd06e5 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/ |
H A D | splice.c | aadd06e5 Mon Jul 10 04:00:01 CDT 2006 Jens Axboe <axboe@suse.de> [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 <axboe@suse.de> aadd06e5 Mon Jul 10 04:00:01 CDT 2006 Jens Axboe <axboe@suse.de> [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 <axboe@suse.de>
|