From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263540AbUHWLpk (ORCPT ); Mon, 23 Aug 2004 07:45:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263640AbUHWLpk (ORCPT ); Mon, 23 Aug 2004 07:45:40 -0400 Received: from ns.virtualhost.dk ([195.184.98.160]:12436 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id S263540AbUHWLpg (ORCPT ); Mon, 23 Aug 2004 07:45:36 -0400 Date: Mon, 23 Aug 2004 13:43:29 +0200 From: Jens Axboe To: Peter Osterlund Cc: Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Speed up the cdrw packet writing driver Message-ID: <20040823114329.GI2301@suse.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 14 2004, Peter Osterlund wrote: > Hi! > > This patch replaces the pd->bio_queue linked list with an rbtree. The > list can get very long (>200000 entries on a 1GB machine), so keeping > it sorted with a naive algorithm is far too expensive. It looks like you are assuming that bio->bi_sector is unique which isn't necessarily true. In that respect, list -> rbtree conversion isn't trivial (or, at least it requires extra code to handle this). -- Jens Axboe