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:
parent
4c07c25dbb
commit
06f40459df
1 changed files with 1 additions and 1 deletions
|
|
@ -1245,7 +1245,7 @@ NTSTATUS nfs41_UpcallWaitForReply(
|
||||||
KeSetEvent(&upcallEvent, 0, FALSE);
|
KeSetEvent(&upcallEvent, 0, FALSE);
|
||||||
DbgP("@@@ Creating %s upcall entry=%p xid=%d\n", opstring, entry, entry->xid);
|
DbgP("@@@ Creating %s upcall entry=%p xid=%d\n", opstring, entry, entry->xid);
|
||||||
if (!entry->async_op) {
|
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),
|
print_wait_status(1, "[downcall]", status, opcode2string(entry->opcode),
|
||||||
entry, entry->xid);
|
entry, entry->xid);
|
||||||
} else
|
} else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue