]> Git Repo - linux.git/commit
bonding: fix rx_handler locking
authorJiri Pirko <[email protected]>
Tue, 22 Mar 2011 02:38:12 +0000 (02:38 +0000)
committerDavid S. Miller <[email protected]>
Wed, 23 Mar 2011 19:45:10 +0000 (12:45 -0700)
commit35d48903e9781975e823b359ee85c257c9ff5c1c
tree889a517bd0ccfbf64978ca9f8b5e70225a268d87
parentcda6587c21a887254c8ed4b58da8fcc4040ab557
bonding: fix rx_handler locking

This prevents possible race between bond_enslave and bond_handle_frame
as reported by Nicolas by moving rx_handler register/unregister.
slave->bond is added to hold pointer to master bonding sructure. That
way dev->master is no longer used in bond_handler_frame.
Also, this removes "BUG: scheduling while atomic" message

Reported-by: Nicolas de Pesloüan <[email protected]>
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: Andy Gospodarek <[email protected]>
Tested-by: Nicolas de Pesloüan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bonding.h
This page took 0.054568 seconds and 4 git commands to generate.