From 7dfbe2e3fc0215b49d8202a32beb6b1aae08c4e4 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 29 Apr 2015 16:05:32 +0200 Subject: core: annotate event sources --- src/core/mount.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/core/mount.c') diff --git a/src/core/mount.c b/src/core/mount.c index eb25bcbdbe..d0c41a73a9 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -164,12 +164,18 @@ static int mount_arm_timer(Mount *m) { return sd_event_source_set_enabled(m->timer_event_source, SD_EVENT_ONESHOT); } - return sd_event_add_time( + r = sd_event_add_time( UNIT(m)->manager->event, &m->timer_event_source, CLOCK_MONOTONIC, now(CLOCK_MONOTONIC) + m->timeout_usec, 0, mount_dispatch_timer, m); + if (r < 0) + return r; + + (void) sd_event_source_set_description(m->timer_event_source, "mount-timer"); + + return 0; } static void mount_unwatch_control_pid(Mount *m) { @@ -1645,6 +1651,8 @@ static int mount_enumerate(Manager *m) { r = sd_event_source_set_priority(m->mount_event_source, -10); if (r < 0) goto fail; + + (void) sd_event_source_set_description(m->mount_event_source, "mount-mountinfo-dispatch"); } if (m->utab_inotify_fd < 0) { @@ -1669,6 +1677,8 @@ static int mount_enumerate(Manager *m) { r = sd_event_source_set_priority(m->mount_utab_event_source, -10); if (r < 0) goto fail; + + (void) sd_event_source_set_description(m->mount_utab_event_source, "mount-utab-dispatch"); } r = mount_load_proc_self_mountinfo(m, false); -- cgit v1.2.3-54-g00ecf