Page MenuHomeFreeBSD

Use standard taskqueue instead of hv_work_queue
ClosedPublic

Authored by howard0su_gmail.com on Jan 17 2016, 12:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 26, 4:39 PM
Unknown Object (File)
Jan 3 2025, 4:45 AM
Unknown Object (File)
Dec 10 2024, 12:21 AM
Unknown Object (File)
Nov 10 2024, 1:26 AM
Unknown Object (File)
Oct 20 2024, 2:46 AM
Unknown Object (File)
Oct 18 2024, 9:15 AM
Unknown Object (File)
Oct 18 2024, 6:14 AM
Unknown Object (File)
Oct 9 2024, 10:49 PM
Subscribers

Details

Summary

HyperV code was porting from Linux. There is an implementation of work queue
called as hv_work_queue. In FreeBSD, taskqueue is using for the same
purpose. Convert all the consumer of hv_work_queue to using taskqueue and remove work
queue implementation.

The net impact is reduced code and make the driver more FreeBSD style.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2280
Build 2289: arc lint + arc unit

Event Timeline

howard0su_gmail.com retitled this revision from to Use standard taskqueue instead of hv_work_queue.
howard0su_gmail.com updated this object.
howard0su_gmail.com edited the test plan for this revision. (Show Details)
howard0su_gmail.com edited edge metadata.

Fix a error logic which can lead to panic

Cleanup header file, recycle unused defs.
also update one place which can use WAITOK now.

sys/dev/hyperv/vmbus/hv_connection.c
167

This sema can be removed. It is only used in hv_work_queue_create which has been removed by this patch.

271

remove

324

It can be removed.

address review comments, remove control_sema

This revision is now accepted and ready to land.Jan 29 2016, 10:41 AM
howard0su_gmail.com edited edge metadata.

Remove a empty pair of lock/unlock

This revision now requires review to proceed.Feb 1 2016, 4:26 AM
adrian edited edge metadata.
This revision is now accepted and ready to land.Feb 4 2016, 5:48 AM
This revision was automatically updated to reflect the committed changes.