diff options
author | Alex Elder <elder@dreamhost.com> | 2012-02-14 15:05:33 -0500 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-03-22 11:47:50 -0400 |
commit | e0f43c9419c1900e5b50de4261e9686a45a0a2b8 (patch) | |
tree | 28a0452e2bc223513b376f9db711f878a848bddc | |
parent | 859eb7994876f26fd9f52d9589fbcab8e2fe8069 (diff) |
libceph: make ceph_msgr_wq private
The messenger workqueue has no need to be public. So give it static
scope.
Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r-- | include/linux/ceph/messenger.h | 2 | ||||
-rw-r--r-- | net/ceph/messenger.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index 6b5af5f976d1..5ca0f8244203 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h | |||
@@ -14,8 +14,6 @@ | |||
14 | struct ceph_msg; | 14 | struct ceph_msg; |
15 | struct ceph_connection; | 15 | struct ceph_connection; |
16 | 16 | ||
17 | extern struct workqueue_struct *ceph_msgr_wq; /* receive work queue */ | ||
18 | |||
19 | /* | 17 | /* |
20 | * Ceph defines these callbacks for handling connection events. | 18 | * Ceph defines these callbacks for handling connection events. |
21 | */ | 19 | */ |
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index 04d2b975ab0c..31f59ac03d8a 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c | |||
@@ -97,7 +97,7 @@ static void encode_my_addr(struct ceph_messenger *msgr) | |||
97 | /* | 97 | /* |
98 | * work queue for all reading and writing to/from the socket. | 98 | * work queue for all reading and writing to/from the socket. |
99 | */ | 99 | */ |
100 | struct workqueue_struct *ceph_msgr_wq; | 100 | static struct workqueue_struct *ceph_msgr_wq; |
101 | 101 | ||
102 | int ceph_msgr_init(void) | 102 | int ceph_msgr_init(void) |
103 | { | 103 | { |