I fixed up the nfs4_pnfs_get_layout function as per Benny's note. (I hope) This caused a slight shift in subseqent patches, so I'm resending all 4 patches. The patches pass connectathon with file layout/gpfs.