[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH xenvif 4/5] Allow FrontendIncrementStatistic() to be called at < DISPATCH_LEVEL
Swap the ASSERTion for a KeRaiseIrql(). Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx> --- src/xenvif/frontend.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xenvif/frontend.c b/src/xenvif/frontend.c index 9949357..142b2d4 100644 --- a/src/xenvif/frontend.c +++ b/src/xenvif/frontend.c @@ -1634,10 +1634,11 @@ FrontendIncrementStatistic( { ULONG Index; PXENVIF_FRONTEND_STATISTICS Statistics; + KIRQL Irql; ASSERT(Name < XENVIF_VIF_STATISTIC_COUNT); - ASSERT3U(KeGetCurrentIrql(), ==, DISPATCH_LEVEL); + KeRaiseIrql(DISPATCH_LEVEL, &Irql); Index = KeGetCurrentProcessorNumberEx(NULL); @@ -1645,6 +1646,8 @@ FrontendIncrementStatistic( Statistics = &Frontend->Statistics[Index]; Statistics->Value[Name] += Delta; + + KeLowerIrql(Irql); } static FORCEINLINE const CHAR * -- 2.5.3 _______________________________________________ win-pv-devel mailing list win-pv-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/win-pv-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |