Don't need futexaddr::lock_

上级 5c948d49
...@@ -113,8 +113,6 @@ struct futexaddr : public referenced, public rcu_freed ...@@ -113,8 +113,6 @@ struct futexaddr : public referenced, public rcu_freed
futexkey_t key_; futexkey_t key_;
bool inserted_; bool inserted_;
struct spinlock lock_;
xns<u32, proc*, proc::hash>* const nspid_; xns<u32, proc*, proc::hash>* const nspid_;
private: private:
...@@ -148,7 +146,6 @@ futexaddr::alloc(futexkey_t key) ...@@ -148,7 +146,6 @@ futexaddr::alloc(futexkey_t key)
futexaddr::futexaddr(futexkey_t key, xns<u32, proc*, proc::hash>* nspid) futexaddr::futexaddr(futexkey_t key, xns<u32, proc*, proc::hash>* nspid)
: rcu_freed("futexaddr"), key_(key), inserted_(false), nspid_(nspid) : rcu_freed("futexaddr"), key_(key), inserted_(false), nspid_(nspid)
{ {
initlock(&lock_, "futexaddr::lock_", LOCKSTAT_FUTEX);
} }
void void
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论