Home
last modified time | relevance | path

Searched hist:"00 de00bd" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/
H A Dsplice.c00de00bd Fri Jun 15 06:14:22 CDT 2007 Jens Axboe <jens.axboe@oracle.com> splice: fix leak of pages on short splice to pipe

If the destination pipe is full and we already transferred
data, we break out instead of waiting for more pipe room.
The exit logic looks at spd->nr_pages to see if we moved
everything inside the spd container, but we decrement that
variable in the loop to decide when spd has emptied.

Instead we want to compare to the original page count in
the spd, so cache that in a local variable.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
00de00bd Fri Jun 15 06:14:22 CDT 2007 Jens Axboe <jens.axboe@oracle.com> splice: fix leak of pages on short splice to pipe

If the destination pipe is full and we already transferred
data, we break out instead of waiting for more pipe room.
The exit logic looks at spd->nr_pages to see if we moved
everything inside the spd container, but we decrement that
variable in the loop to decide when spd has emptied.

Instead we want to compare to the original page count in
the spd, so cache that in a local variable.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>