X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Flustre_idl.h;h=2ed215e8ffd1f1e422ab3132918c96c2f712cbe4;hp=2bb996ffa620535cddc476825d08b5fc30133e4c;hb=37391a643dffc94f92e7e502f0d5f410d9a098d6;hpb=fdfc85addf1652b1a81dddc76d4abc1628a3362f diff --git a/lustre/include/linux/lustre_idl.h b/lustre/include/linux/lustre_idl.h index 2bb996f..2ed215e 100644 --- a/lustre/include/linux/lustre_idl.h +++ b/lustre/include/linux/lustre_idl.h @@ -80,14 +80,6 @@ typedef __u8 uuid_t[37]; #define SVC_STOPPING 16 #define SVC_STOPPED 32 -#define RECOVD_STOPPING 1 /* how cleanup tells recovd to quit */ -#define RECOVD_IDLE 2 /* normal state */ -#define RECOVD_STOPPED 4 /* after recovd has stopped */ -#define RECOVD_FAIL 8 /* RPC timeout: wakeup recovd, sets flag */ -#define RECOVD_TIMEOUT 16 /* set when recovd detects a timeout */ -#define RECOVD_UPCALL_WAIT 32 /* an upcall has been placed */ -#define RECOVD_UPCALL_ANSWER 64 /* an upcall has been answered */ - #define LUSTRE_CONN_NEW 1 #define LUSTRE_CONN_CON 2 #define LUSTRE_CONN_RECOVD 3 @@ -109,6 +101,11 @@ struct lustre_handle { __u64 cookie; }; +static inline void ptlrpc_invalidate_handle(struct lustre_handle *hdl) +{ + hdl->addr = hdl->cookie = 0; /* XXX invalid enough? */ +} + /* we depend on this structure to be 8-byte aligned */ struct lustre_msg { __u64 addr;