[ofw] [RFC] [PATCH 0/2 v3] winverbs: transition QP to error on disconnect

Sean Hefty sean.hefty at intel.com
Tue May 26 16:01:25 PDT 2009


The following patches modify winverbs to support transitioning the
QP to error after disconnect completes.  The implementation is based
on the following documentation points and feedback.

http://msdn.microsoft.com/en-us/library/aa490176.aspx

	Because the pool of system worker threads is a limited resource,
	WorkItem and WorkItemEx routines can be used only for operations
	that take a short period of time. If one of these routines runs
	for too long (if it contains an indefinite loop, for example),
	the system can deadlock.

http://msdn.microsoft.com/en-us/library/ms810029.aspx

	Drivers should also avoid queuing excessive numbers of work items,
	because tying up the system worker threads can deadlock the system.
	Instead of queuing a separate work item routine for each individual
	operation, the driver should have a single work item routine that
	performs any outstanding work and then exits when there is no more
	immediate work to perform.

http://msdn.microsoft.com/en-us/library/aa490317.aspx

	Create one or more work items that your driver requeues as
	necessary.  This technique is useful for drivers that use work items
	frequently (more often than once per minute)

Signed-off-by: Sean Hefty <sean.hefty at intel.com>





More information about the ofw mailing list