[lkml]   [2010]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectSplice: splice_direct_to_actor() and randomly data drop
Seeing implementation of  splice_direct_to_actor(), I decide, that
"random data drop" can appear if we alrady have done splice_to, but
have problems with splice_from.

1. Why not to use tee() instead of splice_to ? and after all
operations copmleted successfully, just consume data from IN to
/dev/null :) anyhow.

It will allow to splice between ANY file descriptors, not between
"regular file/block device" and ANY.

2. After that, in do_splice we might call do_splice_direct() if both
file descriptors are not pipe.

Segmentation fault

 \ /
  Last update: 2010-11-29 11:35    [W:0.017 / U:3.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site