On Jul 4, 2016, at 10:25 PM, Al Viro wrote: > BTW, could you take a look at > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git#sendmsg.lustre? > It's a bunch of simplifications that became possible once sendmsg()/recvmsg() > switched to iov_iter, stopped mangling the iovecs and went for predictable > behaviour re advancing the iterator.
Thanks, this looks good to me and passes my testing (on tcp). +typedef struct bio_vec lnet_kiov_t; This I guess we'll need to just get rid of all lnet_kiov_t usage, but that's something we can do ourselves, I guess. Anyway, your patchset is based on old tree that no longer applies cleanly, I rebased it to current staging tree to save you time in case you want to go forward with it. It's at g...@github.com:verygreen/linux.git branch lustre-next-sendmsg James, can you please give it a try on IB? Bye, Oleg