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
F82625460: D4963.id12536.diff
Wed, May 1, 12:07 AM
Unknown Object (File)
Mon, Apr 22, 12:54 PM
Unknown Object (File)
Mar 15 2024, 11:24 AM
Unknown Object (File)
Mar 2 2024, 5:02 AM
Unknown Object (File)
Feb 12 2024, 8:36 PM
Unknown Object (File)
Feb 12 2024, 5:37 PM
Unknown Object (File)
Jan 27 2024, 11:26 PM
Unknown Object (File)
Jan 10 2024, 7:04 AM
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 Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #12536)

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

268 ↗(On Diff #12536)

remove

320 ↗(On Diff #12536)

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.