Page MenuHomeFreeBSD

linuxkpi: Add kref_put_lock
ClosedPublic

Authored by manu on Aug 4 2020, 10:49 AM.

Details

Summary

Same as kref_put but in addition to calling the rel function it will
acquire the lock first.

Sponsored-by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

manu requested review of this revision.Aug 4 2020, 10:49 AM
sys/compat/linuxkpi/common/include/linux/kref.h
89 ↗(On Diff #75354)

()'s around return argument.

91 ↗(On Diff #75354)

ditto.

manu marked 2 inline comments as done.

Remove wip stuff.

Don't forget to MFC to 11 and 12.

This revision is now accepted and ready to land.Aug 4 2020, 11:22 AM
This revision was automatically updated to reflect the committed changes.