Re: 'eject' process stuck in "D" state

Jens Axboe (axboe@suse.de)
Thu, 20 Dec 2001 13:28:05 +0100


--yrj/dFKFPuw6o+aM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Dec 20 2001, A Guy Called Tyketto wrote:
> Just getting to that. as I brought down the box, I got some errors on
> /dev/tty1, which are the same from dmesg. 'ere ya go.

Ah, please try this patch.

-- 
Jens Axboe

--yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=ide-cd-block-pc-1

diff -ur -X exclude /opt/kernel/linux-2.5.1/drivers/ide/ide-cd.c linux/drivers/ide/ide-cd.c --- /opt/kernel/linux-2.5.1/drivers/ide/ide-cd.c Sat Dec 8 23:02:47 2001 +++ linux/drivers/ide/ide-cd.c Thu Dec 20 07:25:26 2001 @@ -594,7 +594,7 @@ cdrom_end_request (1, drive); *startstop = ide_error (drive, "request sense failure", stat); return 1; - } else if (rq->flags & REQ_PC) { + } else if (rq->flags & (REQ_PC | REQ_BLOCK_PC)) { /* All other functions, except for READ. */ struct completion *wait = NULL; pc = (struct packet_command *) rq->special;

--yrj/dFKFPuw6o+aM-- - 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/