Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265603AbUATRIu (ORCPT ); Tue, 20 Jan 2004 12:08:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265605AbUATRIu (ORCPT ); Tue, 20 Jan 2004 12:08:50 -0500 Received: from mail0-96.ewetel.de ([212.6.122.96]:35495 "EHLO mail0.ewetel.de") by vger.kernel.org with ESMTP id S265603AbUATRIr (ORCPT ); Tue, 20 Jan 2004 12:08:47 -0500 Date: Tue, 20 Jan 2004 18:08:44 +0100 (CET) From: Pascal Schmidt To: Jens Axboe cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] fix for ide-scsi crash Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-CheckCompat: OK Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1473 Lines: 42 >> Agree, it's a bug. Pascal, care to take a stab at fixing it? You're the >> most avid ide-cd non-2kb block size user at the moment :) > There's a lot of macros related to sector sizes in ide-cd.h. I suppose > all that would need to be changed to depend on the real hardware sector > size? I've actually looked at the code now and it seems that it might be quite easy to fix this, after all. I have a question about cdrom_start_read_continuation: Variables called nframes and frames are computed but never used. Only nskip actually gets factored into the request: rq->current_nr_sectors += nskip; The others are local vars and never get assigned to anything more global. So I conclude they are meaningless? I ask because this is one of the places that uses SECTORS_PER_FRAME and it doesn't make sense to me. Unrelated question: Later on, the code decides to use DMA only for requests aligned on a SECTORS_PER_FRAME boundary. Where does this limitation come from? Does it come from the drive, so that alignment to 512 byte would be enough on a drive with 512 byte sectors? I've actually ordered some 512 byte sector MO discs today and will try to get them working with ide-cd once they arrive here. -- Ciao, Pascal - 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/