From: Jens Axboe Date: Tue, 17 Jan 2006 13:06:44 +0000 (+0100) Subject: [PATCH] blktrace: we don't need ->closed anymore X-Git-Tag: blktrace-0.99.1~129 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7ac25441fb7bc3c53f4ad20500591c749dcddda6;p=blktrace.git [PATCH] blktrace: we don't need ->closed anymore --- diff --git a/blktrace.c b/blktrace.c index 5245854..ba53b09 100644 --- a/blktrace.c +++ b/blktrace.c @@ -143,8 +143,6 @@ struct thread_information { FILE *ofile; char *ofile_buffer; - volatile int closed; - unsigned long events_processed; struct device_information *device; }; @@ -181,9 +179,6 @@ static pthread_mutex_t stdout_mutex = PTHREAD_MUTEX_INITIALIZER; static void exit_trace(int status); -#define tip_closed(tip) (*(volatile int *)(&(tip)->closed)) -#define set_tip_closed(tip) ((tip)->closed = 1) - #define dip_tracing(dip) (*(volatile int *)(&(dip)->trace_started)) #define dip_set_tracing(dip, v) ((dip)->trace_started = (v)) @@ -482,11 +477,6 @@ static inline void tip_fd_lock(struct thread_information *tip) static void close_thread(struct thread_information *tip) { - if (tip_closed(tip)) - return; - - set_tip_closed(tip); - if (tip->fd != -1) close(tip->fd); if (tip->ofile)