projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cccbe5e
)
fib: fib_result_assign() should not change fib refcounts
author
Eric Dumazet
<
[email protected]
>
Thu, 4 Nov 2010 01:21:39 +0000
(
01:21
+0000)
committer
David S. Miller
<
[email protected]
>
Thu, 4 Nov 2010 19:05:32 +0000
(12:05 -0700)
After commit
ebc0ffae5
(RCU conversion of fib_lookup()),
fib_result_assign() should not change fib refcounts anymore.
Thanks to Michael who did the bisection and bug report.
Reported-by: Michael Ellerman <
[email protected]
>
Tested-by: Michael Ellerman <
[email protected]
>
Signed-off-by: Eric Dumazet <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/fib_lookup.h
patch
|
blob
|
history
diff --git
a/net/ipv4/fib_lookup.h
b/net/ipv4/fib_lookup.h
index a29edf2219c8437b811bcce27fdd2cd9fca0a9fc..c079cc0ec6515fe212aecd27303c2b5671a5d60d 100644
(file)
--- a/
net/ipv4/fib_lookup.h
+++ b/
net/ipv4/fib_lookup.h
@@
-47,11
+47,8
@@
extern int fib_detect_death(struct fib_info *fi, int order,
static inline void fib_result_assign(struct fib_result *res,
struct fib_info *fi)
{
- if (res->fi != NULL)
- fib_info_put(res->fi);
+ /* we used to play games with refcounts, but we now use RCU */
res->fi = fi;
- if (fi != NULL)
- atomic_inc(&fi->fib_clntref);
}
#endif /* _FIB_LOOKUP_H */