The NetBSD Project

CVS log for src/sys/netinet/raw_ip.c

[BACK] Up to [] / src / sys / netinet

Request diff between arbitrary revisions

Default branch: MAIN
Current tag: yamt-splraiseipl-base2

Revision 1.93 / (download) - annotate - [select for diffs], Thu Oct 5 17:35:19 2006 UTC (11 years, 7 months ago) by tls
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.92: +5 -3 lines
Diff to previous 1.92 (colored)

Protect calls to pool_put/pool_get that may occur in interrupt context
with spl used to protect other allocations and frees, or datastructure
element insertion and removal, in adjacent code.

It is almost unquestionably the case that some of the spl()/splx() calls
added here are superfluous, but it really seems wrong to see:

	/* frob data structure */

and if we think we need to protect the first operation, then it is hard
to see why we should not think we need to protect the next.  "Better
safe than sorry".

It is also almost unquestionably the case that I missed some pool
gets/puts from interrupt context with my strategy for finding these
calls; use of PR_NOWAIT is a strong hint that a pool may be used from
interrupt context but many callers in the kernel pass a "can wait/can't
wait" flag down such that my searches might not have found them.  One
notable area that needs to be looked at is pf.

See also:

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>