Userspace should use the same buffering logic as kernel

This will simplify testing.

Signed-off-by: David Scott <dave.scott@citrix.com>