[PATCH 1/4] libceph: make ceph_msgr_wq private

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The messenger workqueue has no need to be public.  So give it static
scope.

Signed-off-by: Alex Elder <elder@xxxxxxxxxxxxx>
---
 include/linux/ceph/messenger.h |    2 --
 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 6b5af5f..5ca0f82 100644
--- a/include/linux/ceph/messenger.h
+++ b/include/linux/ceph/messenger.h
@@ -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.
  */
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index 03868cd..9c0f73a 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -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)
 {
--
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux