Author: cmihail
Date: Sun Aug 7 23:51:57 2011
New Revision: 53135
URL:
http://svn.reactos.org/svn/reactos?rev=53135&view=rev
Log:
[TCPIP]
- Use lookaside lists for TDI_BUCKETs in accept.c too.
Modified:
branches/GSoC_2011/TcpIpDriver/lib/drivers/ip/transport/tcp/accept.c
Modified: branches/GSoC_2011/TcpIpDriver/lib/drivers/ip/transport/tcp/accept.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/TcpIpDriver/lib/drive…
==============================================================================
--- branches/GSoC_2011/TcpIpDriver/lib/drivers/ip/transport/tcp/accept.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/TcpIpDriver/lib/drivers/ip/transport/tcp/accept.c [iso-8859-1] Sun
Aug 7 23:51:57 2011
@@ -11,6 +11,8 @@
#include "precomp.h"
#include "rosip.h"
+
+extern NPAGED_LOOKASIDE_LIST TdiBucketLookasideList;
NTSTATUS TCPCheckPeerForAccept(PVOID Context,
PTDI_REQUEST_KERNEL Request)
@@ -118,7 +120,7 @@
{
DereferenceObject(Bucket->AssociatedEndpoint);
RemoveEntryList( &Bucket->Entry );
- ExFreePoolWithTag( Bucket, TDI_BUCKET_TAG );
+ ExFreeToNPagedLookasideList(&TdiBucketLookasideList, Bucket);
Found = TRUE;
break;
}
@@ -143,9 +145,7 @@
LockObject(Listener, &OldIrql);
- Bucket = (PTDI_BUCKET)ExAllocatePoolWithTag(NonPagedPool,
- sizeof(*Bucket),
- TDI_BUCKET_TAG );
+ Bucket = ExAllocateFromNPagedLookasideList(&TdiBucketLookasideList);
if (Bucket)
{