making upcall wait uninterruptable

switching user's upcall wait from being UserMode and TRUE (interruptable) to KernelMode and FALSE. msdn doc does recommend for simplicity of the drivers to do that.

it seems to no longer generate interrupts on close irps but we are still able to ctrl-c running tests.
This commit is contained in:
Olga Kornievskaia 2011-01-07 14:51:50 -05:00 committed by unknown
parent 4c07c25dbb
commit 06f40459df

View file

@ -1245,7 +1245,7 @@ NTSTATUS nfs41_UpcallWaitForReply(
KeSetEvent(&upcallEvent, 0, FALSE);
DbgP("@@@ Creating %s upcall entry=%p xid=%d\n", opstring, entry, entry->xid);
if (!entry->async_op) {
status = KeWaitForSingleObject(&entry->cond, Executive, UserMode, TRUE, NULL);
status = KeWaitForSingleObject(&entry->cond, Executive, KernelMode, FALSE, NULL);
print_wait_status(1, "[downcall]", status, opcode2string(entry->opcode),
entry, entry->xid);
} else