forked from DragonFlyBSD/DragonFlyBSD
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syncache_socket(): fix abort path by calling pru_abort directly
On syncache_socket() abort path, the inp's {fport,lport,faddr,laddr} is either incomplete or half destroyed, which causes tcp_soport() mapping the socket to a wrong CPU. However, in syncache code, inp is only accessed or created by its owner CPU, i.e. we are already on the inp's owner CPU during the socket aborting. Add soabort_oncpu(), which calls pru_abort directly. Use it on syncache_socket() abort path.
- Loading branch information
Sepherosa Ziehau
committed
Jan 31, 2009
1 parent
9bf0666
commit fd86a41
Showing
5 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters