This is a piece of the "pnfs-submit Re-initialize pnfs_layout_type when segs list is emtpy" patch set that I think is not being argued about. More initialization needs to occur when the layout->segs list is empty. This patch fixes the bug where a layoutreturn would empty the nfs_inode->layout segs list, and a future layoutget would use a (now-stale) stateid instead of creating a new layout stateid from an existing open/lock/deleg stateid. layoutget decides to get a new stateid when the nfs_layout->layout->stateid is zeroed. Testing; CONFIG_NFS_V4_1 set: Passes Connectathon (pnfs mount). Behaves correctly in pyNFS file layout server tests where return-on-close is set - every layoutget uses a new stateid. CONFIG_NFS_V4_1 not set: NFsv4.0 passses connectathon -->Andy -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html