1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
5 #ifndef _GKS_INTERNAL_H
6 #define _GKS_INTERNAL_H
8 #define GKS_SERVICE_WATCHDOG_TIMEOUT 30000
10 struct semaphore rpcl_sem;
11 struct lookup_intent *rpcl_it;
14 static inline void gkc_init_rpc_lock(struct mdc_rpc_lock *lck)
16 sema_init(&lck->rpcl_sem, 1);
20 static inline void gkc_get_rpc_lock(struct mdc_rpc_lock *lck,
21 struct lookup_intent *it)
30 static inline void gkc_put_rpc_lock(struct mdc_rpc_lock *lck,
31 struct lookup_intent *it)
35 LASSERT(it == lck->rpcl_it);
40 LASSERT(it == lck->rpcl_it);
46 #endif /* _GKS_INTERNAL_H */