From: Silvio Fricke <silvio.fricke@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: Silvio Fricke <silvio.fricke@gmail.com>
Subject: [PATCH 1/2] btrfs-progs: tasks info->id is a pthread_t and should not set to -1
Date: Thu, 24 Sep 2015 08:13:04 +0200 [thread overview]
Message-ID: <7773bc3eb2de3b4a5be3ac1ae255331b93fe410f.1443074502.git.silvio.fricke@gmail.com> (raw)
In-Reply-To: <cover.1443074502.git.silvio.fricke@gmail.com>
In-Reply-To: <cover.1443074502.git.silvio.fricke@gmail.com>
Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
---
task-utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/task-utils.c b/task-utils.c
index 58f5195..a4017ff 100644
--- a/task-utils.c
+++ b/task-utils.c
@@ -51,7 +51,7 @@ int task_start(struct task_info *info)
info->private_data);
if (ret)
- info->id = -1;
+ info->id = 0;
return ret;
}
@@ -64,7 +64,7 @@ void task_stop(struct task_info *info)
if (info->id > 0) {
pthread_cancel(info->id);
pthread_join(info->id, NULL);
- info->id = -1;
+ info->id = 0;
}
if (info->periodic.timer_fd) {
--
2.5.3
next prev parent reply other threads:[~2015-09-24 6:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1443012156.git.silvio.fricke@gmail.com>
2015-09-24 6:13 ` [PATCH 0/2] progress indicator for btrfs-check Silvio Fricke
2015-09-25 21:47 ` David Sterba
2015-09-24 6:13 ` Silvio Fricke [this message]
2015-09-24 6:13 ` [PATCH 2/2] btrfs-progs: check: add progress indicator Silvio Fricke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7773bc3eb2de3b4a5be3ac1ae255331b93fe410f.1443074502.git.silvio.fricke@gmail.com \
--to=silvio.fricke@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).