From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755535AbYBLWU2 (ORCPT ); Tue, 12 Feb 2008 17:20:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751438AbYBLWUS (ORCPT ); Tue, 12 Feb 2008 17:20:18 -0500 Received: from smtp2.linux-foundation.org ([207.189.120.14]:34405 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750855AbYBLWUQ (ORCPT ); Tue, 12 Feb 2008 17:20:16 -0500 Date: Tue, 12 Feb 2008 14:19:41 -0800 From: Andrew Morton To: Olof Johansson Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] Execute tasklets in the same order they were queued Message-Id: <20080212141941.9cb2f651.akpm@linux-foundation.org> In-Reply-To: <20080212220647.GA7969@lixom.net> References: <20080211222813.GA14316@lixom.net> <20080212135558.d22a843a.akpm@linux-foundation.org> <20080212220647.GA7969@lixom.net> X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Feb 2008 16:06:47 -0600 Olof Johansson wrote: > I noticed this when looking at an openswan issue. Openswan (ab?)uses > the tasklet API to defer processing of packets in some situations, > with one packet per tasklet_action(). I started noticing sequences > of backwards-ordered sequence numbers coming over the wire, since > new tasklets are always queued at the head of the list but processed > sequentially. > > Convert it to instead append new entries to the tail of the list. As an > extra bonus, the splicing code in takeover_tasklets() no longer has to > iterate over the list. hm, well, let's see what if any effect this has on networking. I'll cheerily tag this as to-be-merged-via-git-sched. Ingo wasn't doing much anyway.