[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <51F22287.8050204@cn.fujitsu.com>
Date: Fri, 26 Jul 2013 15:17:27 +0800
From: Gu Zheng <guz.fnst@...fujitsu.com>
To: majianpeng <majianpeng@...il.com>
CC: viro <viro@...iv.linux.org.uk>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: question about splice
Hi Jianpeng,
On 07/26/2013 03:08 PM, majianpeng wrote:
> Hi all,
> I used splice and found a prolem(at least i call).
> The demo is:
> A:splice(regularfileA--->pipe);
> B:splice(pipe--->regularfileB)
> Before do B, we modify the data of regA which now in pipe. The data to regularfileB willbe change.
> If we used the buff
> A:read(regA, buff);
> B: write(buff, regB);
> After A, the contend of regA can't effect the buff.
> Review the code of splice,I know the pipe share the pagecache of regA.
Right. And also this is the splice's original design intention, using share mmap rather
than copy_to_user/copy_from_user in order to achieve zero-copy.
Thanks,
Gu
> Maybe this is not a problem or am i missing something?
>
> Thanks!
> Jianpeng MaN嫥叉靣笡y氊b瞂千v豝�)藓{.n�+壏{睉赙zXФ.洝塄}财爖�&j:+v墾�.珣赙zZ+€�+zf"穐殘啳嗃i�z�.畐ア�?櫒璀�&�)撷.f旟^j谦y呩@A玜囤�.0鹅h�.鍜i
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists