Re: cdrom blocksize reset bug with 2.4.x kernels

From: Jens Axboe (
Date: Wed Jul 02 2003 - 06:18:35 EST

On Wed, Jul 02 2003, Attila Kinali wrote:
> Hi,
> After some discussion on the mplayer-users mailinglist about
> that for some scsi drives it's impossible to read a data cd
> after reading a vcd/scvd until the next reboot.
> (see
> I found that there is a reset of the cdrom block size needed
> for those drives which doesnt restet it themselfs if a new
> cd is put in (looks like only a few scsi cdroms are affected)
> Attached is a small patch for drivers/cdrom/cdrom.c that fixes
> this for the 2.4.20 kernel (and also for 2.4.21 as the code didn't
> change). It's reseting the blocksize when a cdrom is opened for
> the first time (meaning that a umount/mount cycle can reset
> the blocksize).
> I run this code now for about half a year and didnt have any problems.
> But, as i didnt get any feadback from other people, i'm not sure if
> everything is correct.

If you clean this up wrt coding style, it can go in.

Jens Axboe

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:15 EST