winverbs: store devices in order that they are added
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 30 Sep 2009 22:35:57 +0000 (22:35 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 30 Sep 2009 22:35:57 +0000 (22:35 +0000)
Maintaining and reporting devices in the same order that they are seen by the driver assists users in mapping IPoIB devices to verbs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2481 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/winverbs/kernel/wv_driver.c

index ee96f19..d532160 100644 (file)
@@ -486,7 +486,7 @@ static NTSTATUS WvPowerD0Entry(WDFDEVICE Device, WDF_POWER_DEVICE_STATE Previous
 \r
        KeAcquireGuardedMutex(&Lock);\r
        create = IsListEmpty(&DevList);\r
-       InsertHeadList(&DevList, &dev->Entry);\r
+       InsertTailList(&DevList, &dev->Entry);\r
        KeReleaseGuardedMutex(&Lock);\r
 \r
        if (create) {\r