Re: 2.6.11-rc[1,2]-mmX scsi cdrom problem, 2.6.10-mm2 ok

From: Jens Axboe
Date: Mon Jan 31 2005 - 03:10:13 EST


On Mon, Jan 31 2005, Fabio Coatti wrote:
> I'm seeing a problem with latest mm releases; with 2.6.11-rc1,2-mmX every time
> I fire up k3b, it get stuck here: (last line, previous lines just for
> documentation :) )
>
> open("/dev/hdc", O_RDONLY|O_NONBLOCK) = 11
> ioctl(11, CDROM_SEND_PACKET, 0xbfffc4e0) = 0
> close(11) = 0
> open("/dev/hdc", O_RDONLY|O_NONBLOCK) = 11
> ioctl(11, CDROM_SEND_PACKET, 0xbfffc590) = -1 EIO (Input/output error)
> close(11) = 0
> open("/dev/hdc", O_RDONLY|O_NONBLOCK) = 11
> ioctl(11, CDROM_SEND_PACKET, 0xbfffc4e0) = 0
> ioctl(11, CDROM_SEND_PACKET, 0xbfffc4e0) = 0
> close(11) = 0
> open("/dev/hdc", O_RDONLY|O_NONBLOCK) = 11
> ioctl(11, CDROM_GET_CAPABILITY or SNDRV_SEQ_IOCTL_UNSUBSCRIBE_PORT,
> 0x7fffffff) = 3735535
> close(11) = 0
> lstat64("/dev", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=30220, ...}) = 0
> lstat64("/dev/sr1", {st_mode=S_IFBLK|0600, st_rdev=makedev(11, 1), ...}) = 0
> open("/dev/sr1", O_RDONLY|O_NONBLOCK) = 11
> fstat64(11, {st_mode=S_IFBLK|0600, st_rdev=makedev(11, 1), ...}) = 0
> ioctl(11, CDROM_SEND_PACKET, 0xbfffd740) = 0
> close(11) = 0
> open("/dev/sr1", O_RDONLY|O_NONBLOCK) = 11
> fstat64(11, {st_mode=S_IFBLK|0600, st_rdev=makedev(11, 1), ...}) = 0
> ioctl(11, CDROMAUDIOBUFSIZ or SCSI_IOCTL_GET_IDLUN, 0xbfffd7e8) = 0
> ioctl(11, SCSI_IOCTL_GET_BUS_NUMBER, 0xbfffd8a4) = 0
> close(11) = 0
> open("/dev/sr1", O_RDONLY|O_NONBLOCK) = 11
> ioctl(11, CDROM_SEND_PACKET, 0xbfffd7d0) = 0
> ioctl(11, CDROM_SEND_PACKET
>
> At this point k3b is stuck in D stat, needs reboot.

The most likely suspect is the REQ_BLOCK_PC scsi changes. Can you try
2.6.11-rc2-mm1 with bk-scsi backed out? (attached)

--
Jens Axboe

Attachment: bk-scsi-rc-fixes.patch.bz2
Description: application/bunzip2