Page MenuHomeFreeBSD

Remove references to splbio().
ClosedPublic

Authored by markj on Jun 24 2019, 4:29 PM.
Tags
None
Referenced Files
F86157567: D20741.id59004.diff
Sun, Jun 16, 7:32 AM
F86149758: D20741.id59009.diff
Sun, Jun 16, 4:29 AM
F86147980: D20741.id59060.diff
Sun, Jun 16, 3:45 AM
F86143515: D20741.id.diff
Sun, Jun 16, 2:06 AM
Unknown Object (File)
Sat, Jun 15, 5:43 AM
Unknown Object (File)
Mon, Jun 10, 6:36 PM
Unknown Object (File)
Mon, Jun 10, 6:36 PM
Unknown Object (File)
Mon, Jun 3, 7:42 PM
Subscribers

Details

Summary
  • 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.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25004
Build 23719: arc lint + arc unit

Event Timeline

sys/ufs/ffs/ffs_softdep.c
2113

I think in modern times this sentence could be replaced with the statement that the function can sleep.

8882

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.

I suggest you to go ahead with smbfs part.

sys/ufs/ffs/ffs_softdep.c
2113

Well, the sleep can occur only if DEPALLOC is passed. Do you think it is worth documenting these constraints?

8882

Indeed, and there are many functions which assert this lock.

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.

This revision is now accepted and ready to land.Jun 24 2019, 11:42 PM
  • Add some lock assertions.
  • Rebase.
This revision now requires review to proceed.Jun 25 2019, 3:20 PM
  • Fix compilation issues. I uploaded an old copy of the diff by accident.
This revision is now accepted and ready to land.Jun 25 2019, 4:49 PM
This revision was automatically updated to reflect the committed changes.