Thread (13 messages) flat view 13 messages, 6 authors, 2008-05-20

Re: [Bugme-new] [Bug 10737] New: pktgen procfs problem

From: Patrick McHardy <hidden>
Date: 2008-05-19 10:36:13

Denis V. Lunev wrote:
On Sun, 2008-05-18 at 17:31 +0200, Patrick McHardy wrote:
  
quoted
git-bisect identified e9720acd ([NET]: Make /proc/net a symlink
on /proc/self/net (v3)) as the guilty commit. I couldn't find
the problem in that commit, so someone with a better understanding
of how this is supposed to work should look into it.
    
could you consider this preliminary patch? It fixes the problem for me
and Pavel agrees with it.

The problem is that module_get is called for each file opening while
module_put is called only when /proc inode is destroyed. So, lets put
module counter if we are dealing with already initialised inode.
  

The patch works fine for me, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help