Whamcloud - gitweb
LU-2743 ptlrpc: Translate between host and network errnos
[fs/lustre-release.git] / lustre / ptlrpc / pack_generic.c
index 29e37ab..5da443c 100644 (file)
@@ -645,6 +645,9 @@ static inline int lustre_unpack_ptlrpc_body_v2(struct ptlrpc_request *req,
                  return -EINVAL;
         }
 
+       if (!inout)
+               pb->pb_status = ptlrpc_status_ntoh(pb->pb_status);
+
         return 0;
 }