From 3c737e0e68d68c2bebeb78939f00c63dfa403eee Mon Sep 17 00:00:00 2001 From: Gunnar Dalsnes Date: Thu, 4 Mar 2004 01:29:24 +0000 Subject: [PATCH] disable apc's for work items svn path=/trunk/; revision=8526 --- reactos/drivers/fs/vfat/misc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/fs/vfat/misc.c b/reactos/drivers/fs/vfat/misc.c index c7489da54e0..22261325a0e 100644 --- a/reactos/drivers/fs/vfat/misc.c +++ b/reactos/drivers/fs/vfat/misc.c @@ -1,4 +1,4 @@ -/* $Id: misc.c,v 1.11 2003/10/11 17:51:56 hbirr Exp $ +/* $Id: misc.c,v 1.12 2004/03/04 01:29:24 gdalsnes Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -135,10 +135,12 @@ NTSTATUS STDCALL VfatBuildRequest ( DPRINT1("Vfat is entered at irql = %d\n", KeGetCurrentIrql()); } Status = VfatDispatchRequest (IrpContext); + if (KeGetCurrentIrql() <= PASSIVE_LEVEL) { FsRtlExitFileSystem(); } + } return Status; } @@ -191,7 +193,9 @@ VOID STDCALL VfatDoRequest (PVOID IrpContext) { InterlockedDecrement(&QueueCount); DPRINT ("VfatDoRequest (IrpContext %x), MajorFunction %x, %d\n", IrpContext, ((PVFAT_IRP_CONTEXT)IrpContext)->MajorFunction, QueueCount); + FsRtlEnterFileSystem(); VfatDispatchRequest((PVFAT_IRP_CONTEXT)IrpContext); + FsRtlExitFileSystem(); }