Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287481
b: refs/heads/master
c: b01377a
h: refs/heads/master
i:
  287479: 6eb1927
v: v3
  • Loading branch information
sjur.brandeland@stericsson.com authored and David S. Miller committed Feb 2, 2012
1 parent 5156037 commit b23d2e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: c31c151b1c4a29da4dc92212aa8648fb4f8557b9
refs/heads/master: b01377a4200d0dfc7b04a8daabb4739727353703
12 changes: 3 additions & 9 deletions trunk/net/caif/cfmuxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ static void cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
{
struct cfmuxl *muxl = container_obj(layr);
struct cflayer *layer;
int idx;

rcu_read_lock();
list_for_each_entry_rcu(layer, &muxl->srvl_list, node) {
Expand All @@ -257,14 +256,9 @@ static void cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,

if ((ctrl == _CAIF_CTRLCMD_PHYIF_DOWN_IND ||
ctrl == CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND) &&
layer->id != 0) {

idx = layer->id % UP_CACHE_SIZE;
spin_lock_bh(&muxl->receive_lock);
RCU_INIT_POINTER(muxl->up_cache[idx], NULL);
list_del_rcu(&layer->node);
spin_unlock_bh(&muxl->receive_lock);
}
layer->id != 0)
cfmuxl_remove_uplayer(layr, layer->id);

/* NOTE: ctrlcmd is not allowed to block */
layer->ctrlcmd(layer, ctrl, phyid);
}
Expand Down

0 comments on commit b23d2e9

Please sign in to comment.