[MTHCA] fix: return to the previous, amore robust solution of waiting for the command...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 19 Jun 2006 14:54:09 +0000 (14:54 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 19 Jun 2006 14:54:09 +0000 (14:54 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@387 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/mthca_cmd.c

index d358403..9412ae6 100644 (file)
@@ -389,9 +389,8 @@ static int mthca_cmd_wait(struct mthca_dev *dev,
        {
                NTSTATUS res;
                LARGE_INTEGER  interval;
-               BOOLEAN interruptible = (ExGetPreviousMode() == UserMode) ? TRUE : FALSE;
                interval.QuadPart = (-10)* (__int64)timeout;
-               res = KeWaitForSingleObject( &context->event, Executive, KernelMode, interruptible,  &interval );
+               res = KeWaitForSingleObject( &context->event, Executive, KernelMode, FALSE,  &interval );
                if (res != STATUS_SUCCESS) {
                        err = -EBUSY;
                        goto out;