From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by kanga.kvack.org (Postfix) with ESMTP id EEA886B003D for ; Thu, 29 May 2014 03:28:44 -0400 (EDT) Received: by mail-pa0-f51.google.com with SMTP id kq14so12342380pab.24 for ; Thu, 29 May 2014 00:28:44 -0700 (PDT) Received: from ozlabs.org (ozlabs.org. [103.22.144.67]) by mx.google.com with ESMTPS id hx2si26767832pbb.205.2014.05.29.00.28.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 May 2014 00:28:44 -0700 (PDT) From: Rusty Russell Subject: virtio ring cleanups, which save stack on older gcc Date: Thu, 29 May 2014 16:56:41 +0930 Message-Id: <1401348405-18614-1-git-send-email-rusty@rustcorp.com.au> In-Reply-To: <87oayh6s3s.fsf@rustcorp.com.au> References: <87oayh6s3s.fsf@rustcorp.com.au> Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds , Dave Chinner , Jens Axboe , Minchan Kim , Linux Kernel Mailing List , Andrew Morton , linux-mm , "H. Peter Anvin" , Ingo Molnar , Peter Zijlstra , Mel Gorman , Rik van Riel , Johannes Weiner , Hugh Dickins , "Michael S. Tsirkin" , Dave Hansen , Steven Rostedt They don't make much difference: the easier fix is use gcc 4.8 which drops stack required across virtio block's virtio_queue_rq down to that kmalloc in virtio_ring from 528 to 392 bytes. Still, these (*lightly tested*) patches reduce to 432 bytes, even for gcc 4.6.4. Posted here FYI. Cheers, Rusty. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org