[driver] stop impersonating client even if it's a lost upcall

This commit is contained in:
Olga Kornievskaia 2011-12-21 16:15:26 -05:00
parent 0e272630a3
commit fd21e7fbfd

View file

@ -1540,14 +1540,14 @@ NTSTATUS nfs41_downcall(
} }
pEntry = pEntry->Flink; pEntry = pEntry->Flink;
} }
ExReleaseFastMutex(&downcallLock); ExReleaseFastMutex(&downcallLock);
SeStopImpersonatingClient();
if (!found) { if (!found) {
print_error("Didn't find xid=%d entry\n", tmp->xid); print_error("Didn't find xid=%d entry\n", tmp->xid);
goto out_free; goto out_free;
} }
ExAcquireFastMutex(&cur->lock); ExAcquireFastMutex(&cur->lock);
SeStopImpersonatingClient();
if (cur->state == NFS41_NOT_WAITING) { if (cur->state == NFS41_NOT_WAITING) {
print_error("[downcall] Nobody is waiting for this request!!!\n"); print_error("[downcall] Nobody is waiting for this request!!!\n");
ExReleaseFastMutex(&cur->lock); ExReleaseFastMutex(&cur->lock);