]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[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@387 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/hw/mthca/kernel/mthca_cmd.c

index d358403624a6e7d6324898942f702b298adc79d7..9412ae69c562833397f6eeda01006d313623fd70 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;