mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Nyk Tarr <nyk@giantx.co.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [Bug] 2.5.44-ac2 cdrom eject panic
Date: Fri, 25 Oct 2002 16:48:44 +0200	[thread overview]
Message-ID: <20021025144844.GY4153@suse.de> (raw)
In-Reply-To: <20021025144608.GX4153@suse.de>

On Fri, Oct 25 2002, Jens Axboe wrote:
> On Fri, Oct 25 2002, Nyk Tarr wrote:
> > On Fri, Oct 25, 2002 at 12:39:38PM +0200, Jens Axboe wrote:
> > > On Fri, Oct 25 2002, Nyk Tarr wrote:
> > > > 
> > > > Hi,
> > > > 
> > > > I got this nice error after doing an 'eject /cdrom'
> > > 
> > > [snip]
> > > 
> > > 2.5.44 and thus 2.5.44-acX has seriously broken REQ_BLOCK_PC, so it's no
> > > wonder that it breaks hard. Alan, I can sync the sgio patches for you if
> > > you want.
> > > 
> > > Nyk, if you could try
> > > 
> > > *.kernel.org/pub/linux/kernel/people/axboe/patches/v2.5/2.5.44/sgio-15.bz2
> > > 
> > > that would be great, thanks.
> > 
> > This also seems to hang and die. No panic in the logs this time, but
> > some stuff scrolling off the screen on console. Sadly I've nothing to
> > use as serial console at the mo' but I'll try some other options...
> 
> Please try sgio-16 from the above location. Ejecting works fine for me,
> it even manages to close the tray when I ask it to.

Irk you are on SCSI, yes you need this incremental patch for that to
work. Sorry about that, I've put up 16b which contains this.

--- drivers/block/scsi_ioctl.c~	2002-10-25 16:46:58.000000000 +0200
+++ drivers/block/scsi_ioctl.c	2002-10-25 16:47:32.000000000 +0200
@@ -319,6 +319,8 @@
 		case CDROMEJECT:
 			rq = blk_get_request(q, WRITE, __GFP_WAIT);
 			rq->flags = REQ_BLOCK_PC;
+			rq->rq_dev = to_kdev_t(bdev->bd_dev);
+			rq->rq_disk = bdev->bd_disk;
 			rq->data = NULL;
 			rq->data_len = 0;
 			rq->timeout = BLK_DEFAULT_TIMEOUT;

-- 
Jens Axboe


  reply	other threads:[~2002-10-25 14:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-25 10:36 Nyk Tarr
2002-10-25 10:39 ` Jens Axboe
2002-10-25 13:09   ` Markus Plail
2002-10-25 14:35     ` Jens Axboe
2002-10-25 14:42     ` Jens Axboe
2002-10-25 16:39       ` Markus Plail
2002-10-25 16:53         ` Jens Axboe
2002-10-27 19:41           ` Markus Plail
2002-10-27 18:56             ` Jens Axboe
2002-10-28 12:14               ` Jens Axboe
2002-10-28 15:14                 ` Markus Plail
2002-10-28 14:58                   ` Jens Axboe
2002-10-25 13:10   ` Nyk Tarr
2002-10-25 14:46     ` Jens Axboe
2002-10-25 14:48       ` Jens Axboe [this message]
2002-10-25 17:25         ` Nyk Tarr
2002-10-25 17:31           ` Jens Axboe
2002-10-25 13:49   ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021025144844.GY4153@suse.de \
    --to=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nyk@giantx.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome