Skip to content

Commit

Permalink
libceph: make ceph_msgr_wq private
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Elder committed Mar 22, 2012
1 parent 859eb79 commit e0f43c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions include/linux/ceph/messenger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit e0f43c9

Please sign in to comment.