Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 29 Nov 2001 13:49:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 29 Nov 2001 13:49:00 -0500 Received: from c1238376-a.parker1.co.home.com ([65.6.124.144]:53511 "HELO mail.ecnerwal.com") by vger.kernel.org with SMTP id ; Thu, 29 Nov 2001 13:45:41 -0500 Date: Thu, 29 Nov 2001 11:38:15 -0700 (MST) From: Ron Lawrence X-X-Sender: To: Douglas Gilbert Cc: Peter Osterlund , Jens Axboe , Subject: Re: CDROM ioctl bug (fwd) In-Reply-To: <20011129182745.O10601@suse.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 29 Nov 2001, Douglas Gilbert wrote: > Peter, > That patch is flawed as Jens and I found out the hard way > in the sg driver. The scsi_do_req() can lead to the pointer > chain on the following assignment into q being invalid (in > the worst case). > > The easy fix is to move the assignment into q _before_ > the call to scsi_do_req(). > > Doug Gilbert Douglas, Moving the assignment up did the trick. The responsiveness is back to it's old self again. Thanks. Jens, will you take care of submitting this patch, so it can be fixed in the mainline kernel, or do I need to do something? I'm happy to do whatever it takes to get this in. Ron Lawrence rlawrence@NeTraverse.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8BoCaU0yq8UBYK2oRAuENAKCWIZ2+ulSLsC7rG7+hjo2vy6UsYgCgsGIm wRS6Pkb6G3mITKZ1aciMKtM= =Z/Cy -----END PGP SIGNATURE----- - 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/