Splice: splice_direct_to_actor() and randomly data drop

From: ÐÐÑÐ ÐÐÑÐÐÐÐÑÐ
Date: Mon Nov 29 2010 - 05:32:50 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/