2.5.44-ac4 scsi CDROMEJECT problem

Nyk Tarr (nyk@giantx.co.uk)
Sun, 27 Oct 2002 22:31:39 +0000


Hi

This patch of Jens Axboe was missing from 2.5.44-ac4. Was this by design
or accidental?

> 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

-- 
/__
\_|\/
   /\
-
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/