[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Races in power IRP handling path.


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Durrant <xadimgnik@xxxxxxxxx>
  • Date: Tue, 11 Oct 2022 15:47:00 +0100
  • Delivery-date: Tue, 11 Oct 2022 14:47:06 +0000
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

On 11/10/2022 15:33, Martin Harvey wrote:
Hi,

Been debugging power IRP handling.

Which driver?

I notice that we not only pend power IRPs on the dispatch path, but also use completion routines to try to force a synchronous completion (Forward irp synchronously). You might want to consider that setting a completion routine **outside** the dispatch handler on a pended IRP is likely to be a racey operation in and of itself.


Racey in what way? Power IRPs are special... there can only be one outstanding.

  Paul




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.