Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288547
b: refs/heads/master
c: a6c76da
h: refs/heads/master
i:
  288545: e81ab88
  288543: a48f994
v: v3
  • Loading branch information
Paul E. McKenney authored and Paul E. McKenney committed Feb 21, 2012
1 parent ac79061 commit a52de48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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: bc399d6e6ed8615007110f5e438886ffd236760e
refs/heads/master: a6c76da8f8b4549ccec7425ba94d8395d68a2e56
12 changes: 1 addition & 11 deletions trunk/drivers/target/tcm_fc/tfc_sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ static struct ft_tport *ft_tport_create(struct fc_lport *lport)
return tport;
}

/*
* Free tport via RCU.
*/
static void ft_tport_rcu_free(struct rcu_head *rcu)
{
struct ft_tport *tport = container_of(rcu, struct ft_tport, rcu);

kfree(tport);
}

/*
* Delete a target local port.
* Caller holds ft_lport_lock.
Expand All @@ -114,7 +104,7 @@ static void ft_tport_delete(struct ft_tport *tport)
tpg->tport = NULL;
tport->tpg = NULL;
}
call_rcu(&tport->rcu, ft_tport_rcu_free);
kfree_rcu(tport, rcu);
}

/*
Expand Down

0 comments on commit a52de48

Please sign in to comment.