From e54d40e8262d89229615ea91e4832352811faec7 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 22 Jan 2010 20:01:26 +0000 Subject: [PATCH] There's no reason for allocating with CACHE_DONT_SLEEP. The only thing that would get us is that the allocations could fail when they wouldn't need to. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35242 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/network/stack/net_buffer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/add-ons/kernel/network/stack/net_buffer.cpp b/src/add-ons/kernel/network/stack/net_buffer.cpp index 51e4caaf9a..702eb02751 100644 --- a/src/add-ons/kernel/network/stack/net_buffer.cpp +++ b/src/add-ons/kernel/network/stack/net_buffer.cpp @@ -709,7 +709,7 @@ allocate_data_header() atomic_add(&sAllocatedDataHeaderCount, 1); atomic_add(&sEverAllocatedDataHeaderCount, 1); #endif - return (data_header*)object_cache_alloc(sDataNodeCache, CACHE_DONT_SLEEP); + return (data_header*)object_cache_alloc(sDataNodeCache, 0); } @@ -720,8 +720,7 @@ allocate_net_buffer() atomic_add(&sAllocatedNetBufferCount, 1); atomic_add(&sEverAllocatedNetBufferCount, 1); #endif - return (net_buffer_private*)object_cache_alloc(sNetBufferCache, - CACHE_DONT_SLEEP); + return (net_buffer_private*)object_cache_alloc(sNetBufferCache, 0); }