Skip to content

Commit 6893162

Browse files
committed
libceph: rename con_work() to ceph_con_workfn()
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>
1 parent d920ff6 commit 6893162

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net/ceph/messenger.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static struct lock_class_key socket_class;
176176

177177
static void queue_con(struct ceph_connection *con);
178178
static void cancel_con(struct ceph_connection *con);
179-
static void con_work(struct work_struct *);
179+
static void ceph_con_workfn(struct work_struct *);
180180
static void con_fault(struct ceph_connection *con);
181181

182182
/*
@@ -749,7 +749,7 @@ void ceph_con_init(struct ceph_connection *con, void *private,
749749
mutex_init(&con->mutex);
750750
INIT_LIST_HEAD(&con->out_queue);
751751
INIT_LIST_HEAD(&con->out_sent);
752-
INIT_DELAYED_WORK(&con->work, con_work);
752+
INIT_DELAYED_WORK(&con->work, ceph_con_workfn);
753753

754754
con->state = CON_STATE_CLOSED;
755755
}
@@ -2799,7 +2799,7 @@ static void con_fault_finish(struct ceph_connection *con)
27992799
/*
28002800
* Do some work on a connection. Drop a connection ref when we're done.
28012801
*/
2802-
static void con_work(struct work_struct *work)
2802+
static void ceph_con_workfn(struct work_struct *work)
28032803
{
28042804
struct ceph_connection *con = container_of(work, struct ceph_connection,
28052805
work.work);

0 commit comments

Comments
 (0)