]> git.karo-electronics.de Git - linux-beck.git/commitdiff
libceph: make ceph_msgr_wq private
authorAlex Elder <elder@dreamhost.com>
Tue, 14 Feb 2012 20:05:33 +0000 (14:05 -0600)
committerAlex Elder <elder@dreamhost.com>
Thu, 22 Mar 2012 15:47:50 +0000 (10:47 -0500)
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>
include/linux/ceph/messenger.h
net/ceph/messenger.c

index 6b5af5f976d1b792e35443d319b1fd06b3851c88..5ca0f824420308ec3ae63454bd58ad416580ff60 100644 (file)
@@ -14,8 +14,6 @@
 struct ceph_msg;
 struct ceph_connection;
 
-extern struct workqueue_struct *ceph_msgr_wq;       /* receive work queue */
-
 /*
  * Ceph defines these callbacks for handling connection events.
  */
index 04d2b975ab0cb336da1a927bf321b9c1a14d8f7f..31f59ac03d8a7fc01bcc3fcf3966aa483533cd0d 100644 (file)
@@ -97,7 +97,7 @@ static void encode_my_addr(struct ceph_messenger *msgr)
 /*
  * work queue for all reading and writing to/from the socket.
  */
-struct workqueue_struct *ceph_msgr_wq;
+static struct workqueue_struct *ceph_msgr_wq;
 
 int ceph_msgr_init(void)
 {