Page MenuHomeFreeBSD

linuxkpi: Add list_for_each_entry_lockless() macro
ClosedPublic

Authored by nc on Jun 9 2021, 6:21 PM.
Tags
None
Referenced Files
F176218007: D30708.id90704.diff
Sat, Oct 17, 1:28 AM
F176217904: D30708.id90651.diff
Sat, Oct 17, 1:27 AM
F176212126: D30708.id90674.diff
Sat, Oct 17, 12:18 AM
Unknown Object (File)
Wed, Oct 7, 10:36 AM
Unknown Object (File)
Wed, Sep 30, 1:59 PM
Unknown Object (File)
Mon, Sep 28, 1:25 AM
Unknown Object (File)
Thu, Sep 24, 11:12 AM
Unknown Object (File)
Sep 12 2026, 10:33 PM

Details

Summary

The reason why list_for_each_entry() is being redefined here is because unlike the Linux version, FreeBSD's list_for_each_entry() does not use locks.

This is needed by the drm-kmod 5.7 update.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

nc requested review of this revision.Jun 9 2021, 6:21 PM
nc retitled this revision from Add list_for_each_entry_lockless() macro to linuxkpi: Add list_for_each_entry_lockless() macro.Jun 9 2021, 6:23 PM

If it's the same as list_for_each_entry you should explain why in the commit message.

I believe linuxkpi's list_for_each_entry is lockless (but am not sure), so I updated the message.

Please use function macro.

#define list_for_each_entry_lockless(...) list_for_each_entry(__VA_ARGS__)

--HPS

Using function macro as per @hselasky's suggestion.

This revision is now accepted and ready to land.Jun 10 2021, 7:29 AM