[CRIU] [PATCH 3/7] page-pipe: Don't increase the page_pipe::nr_pipes if we reuse pipes
Cyrill Gorcunov
gorcunov at openvz.org
Wed May 7 06:58:44 PDT 2014
The page-pipe buffers may be reused once queued pages are
dumped, but we happen to increase page_pipe::nr_pipes
all the timer, regardless the fact where page buffer
came from.
In worst scenario this may lead to incorrect -EAGAIN returned
from page_pipe_grow forcing calling code to create new
pipes. This is not critical but should be fixed.
In other words page_pipe::nr_pipes must track _really_
created pipes.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
Acked-by: Andrey Vagin <avagin at openvz.org>
---
page-pipe.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-page-pipe-Don-t-increase-the-page_pipe-nr_pipes-if-w.patch
Type: text/x-patch
Size: 436 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140507/9cd0c7a3/attachment.bin>
More information about the CRIU
mailing list