Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 12 Jul 2002 01:47:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 12 Jul 2002 01:47:54 -0400 Received: from ns.virtualhost.dk ([195.184.98.160]:8142 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id ; Fri, 12 Jul 2002 01:47:54 -0400 Date: Fri, 12 Jul 2002 07:46:32 +0200 From: Jens Axboe To: Jochen Suckfuell Cc: Thunder from the hill , Marcelo Tosatti , Bill Davidsen , Andries Brouwer , Adrian Bunk , Linux Kernel Subject: Re: [PATCH] Re: Disk IO statistics still buggy Message-ID: <20020712054632.GN855@suse.de> References: <20020706074824.GA24771@win.tue.nl> <20020709190019.A19394@ds217-115-141-141.dedicated.hosteurope.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020709190019.A19394@ds217-115-141-141.dedicated.hosteurope.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 756 Lines: 24 On Tue, Jul 09 2002, Jochen Suckfuell wrote: > --- linux/drivers/scsi/scsi_lib.c Mon Jul 8 16:15:27 2002 > +++ linux_work/drivers/scsi/scsi_lib.c Tue Jul 9 17:56:39 2002 > @@ -426,7 +426,9 @@ > if (req->waiting != NULL) { > complete(req->waiting); > } > + spin_lock_irq(&io_request_lock); > req_finished_io(req); > + spin_unlock_irq(&io_request_lock); > add_blkdev_randomness(MAJOR(req->rq_dev)); > > SDpnt = SCpnt->device; good spotting, that's definitely a bug -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/