Fix potential crash due to changed XIO_MAX_IOV.

Also remove dead code, annotate a couple of branches.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>