This is version 2 of code that rewrites the layout state handling and the CB_LAYOUTRECALL paths, incorporating suggestions from Benny, as well as some compile fixes for the non-v4.1 case, and reordering the patches to put the simpler, less intrusive changes first. I'm not entirely happy with the non-v4.1 compile fixes I added, but they are a starting point. It applies to Benny's current pnfs-submit branch (commit eb04948a). patches 01-05 are straightforward tweaking preparing for the bigger changes patches 06-08 modify CB_COMPUND processing to pass the CB_SEQUENCE info (the session in particular) up to subsequent operations. patches 09-15 are more substantial changes affecting refcounting and blocking. patches 16-17 are the point of it all, the rewrite of the stateid and race handling for LAYOUTGET, LAYOUTRETURN, and CB_LAYOUTRECALL patches 18-22 are Andy's code that puts LAYOUTCOMMIT and LAYOUTRETURN in the same compound as CLOSE Fred -- 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