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

Jens Axboe
2001-12-20T12:28:38Z

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

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

[-- Attachment #2: ide-cd-block-pc-1 --]
[-- Type: text/plain, Size: 570 bytes --]

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;