Skip to content

Commit

Permalink
libceph: rename con_work() to ceph_con_workfn()
Browse files Browse the repository at this point in the history
Even though it's static, con_work(), being a work func, shows up in
various stacktraces a lot.  Prefix it with ceph_.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
  • Loading branch information
Ilya Dryomov committed Sep 8, 2015
1 parent d920ff6 commit 6893162
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static struct lock_class_key socket_class;

static void queue_con(struct ceph_connection *con);
static void cancel_con(struct ceph_connection *con);
static void con_work(struct work_struct *);
static void ceph_con_workfn(struct work_struct *);
static void con_fault(struct ceph_connection *con);

/*
Expand Down Expand Up @@ -749,7 +749,7 @@ void ceph_con_init(struct ceph_connection *con, void *private,
mutex_init(&con->mutex);
INIT_LIST_HEAD(&con->out_queue);
INIT_LIST_HEAD(&con->out_sent);
INIT_DELAYED_WORK(&con->work, con_work);
INIT_DELAYED_WORK(&con->work, ceph_con_workfn);

con->state = CON_STATE_CLOSED;
}
Expand Down Expand Up @@ -2799,7 +2799,7 @@ static void con_fault_finish(struct ceph_connection *con)
/*
* Do some work on a connection. Drop a connection ref when we're done.
*/
static void con_work(struct work_struct *work)
static void ceph_con_workfn(struct work_struct *work)
{
struct ceph_connection *con = container_of(work, struct ceph_connection,
work.work);
Expand Down

0 comments on commit 6893162

Please sign in to comment.