- In ffs_softdep.c, various dependency completion routines are documented as blocking splbio.
- In smbfs we don't need splbio to modify the buf, which must be locked.
Details
Details
- Reviewers
kib mckusick - Commits
- rS349419: Remove references to splbio in ffs_softdep.c.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/ufs/ffs/ffs_softdep.c | ||
---|---|---|
2113 ↗ | (On Diff #58953) | I think in modern times this sentence could be replaced with the statement that the function can sleep. |
8882 ↗ | (On Diff #58953) | There (and in other similar places) it probably would be useful to say that SU mp lock should be owned, but it repeated by the assert at line 8896. |
Comment Actions
Simply deleting the comments about splbio is fine. It might be helpful to change the comment to say `Called with the soft update lock held.' In many places the lock ownership is asserted which may be sufficient, or perhaps the assertion should be added where it is not already there.