Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119166
b: refs/heads/master
c: 98ba403
h: refs/heads/master
v: v3
  • Loading branch information
Lai Jiangshan authored and Jens Axboe committed Nov 18, 2008
1 parent 9adce27 commit b858890
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68aee07f9bad2c830a898cf6d6bfc11ea24efc40
refs/heads/master: 98ba4031ab2adc8b394295e68aa4c8fe9d5060db
9 changes: 4 additions & 5 deletions trunk/kernel/relay.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ void relay_reset(struct rchan *chan)
}

mutex_lock(&relay_channels_mutex);
for_each_online_cpu(i)
for_each_possible_cpu(i)
if (chan->buf[i])
__relay_reset(chan->buf[i], 0);
mutex_unlock(&relay_channels_mutex);
Expand Down Expand Up @@ -611,10 +611,9 @@ struct rchan *relay_open(const char *base_filename,
return chan;

free_bufs:
for_each_online_cpu(i) {
if (!chan->buf[i])
break;
relay_close_buf(chan->buf[i]);
for_each_possible_cpu(i) {
if (chan->buf[i])
relay_close_buf(chan->buf[i]);
}

kref_put(&chan->kref, relay_destroy_channel);
Expand Down

0 comments on commit b858890

Please sign in to comment.