diff options
Diffstat (limited to 'block/blktrace.c')
-rw-r--r-- | block/blktrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/block/blktrace.c b/block/blktrace.c index d9d7146ee023..8e52f24cc8f9 100644 --- a/block/blktrace.c +++ b/block/blktrace.c | |||
@@ -165,7 +165,7 @@ static void __blk_add_trace(struct blk_trace *bt, sector_t sector, int bytes, | |||
165 | struct task_struct *tsk = current; | 165 | struct task_struct *tsk = current; |
166 | struct ring_buffer_event *event = NULL; | 166 | struct ring_buffer_event *event = NULL; |
167 | struct blk_io_trace *t; | 167 | struct blk_io_trace *t; |
168 | unsigned long flags; | 168 | unsigned long flags = 0; |
169 | unsigned long *sequence; | 169 | unsigned long *sequence; |
170 | pid_t pid; | 170 | pid_t pid; |
171 | int cpu, pc = 0; | 171 | int cpu, pc = 0; |
@@ -191,7 +191,7 @@ static void __blk_add_trace(struct blk_trace *bt, sector_t sector, int bytes, | |||
191 | tracing_record_cmdline(current); | 191 | tracing_record_cmdline(current); |
192 | 192 | ||
193 | event = ring_buffer_lock_reserve(blk_tr->buffer, | 193 | event = ring_buffer_lock_reserve(blk_tr->buffer, |
194 | sizeof(*t) + pdu_len, &flags); | 194 | sizeof(*t) + pdu_len); |
195 | if (!event) | 195 | if (!event) |
196 | return; | 196 | return; |
197 | 197 | ||
@@ -241,11 +241,11 @@ record_it: | |||
241 | memcpy((void *) t + sizeof(*t), pdu_data, pdu_len); | 241 | memcpy((void *) t + sizeof(*t), pdu_data, pdu_len); |
242 | 242 | ||
243 | if (blk_tr) { | 243 | if (blk_tr) { |
244 | ring_buffer_unlock_commit(blk_tr->buffer, event, flags); | 244 | ring_buffer_unlock_commit(blk_tr->buffer, event); |
245 | if (pid != 0 && | 245 | if (pid != 0 && |
246 | !(blk_tracer_flags.val & TRACE_BLK_OPT_CLASSIC) && | 246 | !(blk_tracer_flags.val & TRACE_BLK_OPT_CLASSIC) && |
247 | (trace_flags & TRACE_ITER_STACKTRACE) != 0) | 247 | (trace_flags & TRACE_ITER_STACKTRACE) != 0) |
248 | __trace_stack(blk_tr, flags, 5, pc); | 248 | __trace_stack(blk_tr, 0, 5, pc); |
249 | trace_wake_up(); | 249 | trace_wake_up(); |
250 | return; | 250 | return; |
251 | } | 251 | } |