From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932127AbWGCVE5 (ORCPT ); Mon, 3 Jul 2006 17:04:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932126AbWGCVE4 (ORCPT ); Mon, 3 Jul 2006 17:04:56 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:7312 "EHLO palinux.external.hp.com") by vger.kernel.org with ESMTP id S932123AbWGCVE4 (ORCPT ); Mon, 3 Jul 2006 17:04:56 -0400 Date: Mon, 3 Jul 2006 15:04:55 -0600 From: Matthew Wilcox To: Randy Dunlap Cc: lkml , akpm , axboe , jejb , scsi Subject: Re: [Ubuntu PATCH] CDROMEJECT cannot eject some devices Message-ID: <20060703210455.GD1605@parisc-linux.org> References: <44A98220.2000007@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44A98220.2000007@oracle.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 03, 2006 at 01:46:24PM -0700, Randy Dunlap wrote: > > Fix the bug where CDROMEJECT cannot eject some devices. > --- linux-2617-g21.orig/block/scsi_ioctl.c > +++ linux-2617-g21/block/scsi_ioctl.c > @@ -501,7 +501,7 @@ static int __blk_send_generic(request_qu > struct request *rq; > int err; > > - rq = blk_get_request(q, WRITE, __GFP_WAIT); > + rq = blk_get_request(q, READ, __GFP_WAIT); I don't believe this hunk is necessary for mainline. IIRC, there was a bug around length checks vs read vs write which is now fixed. Presumably it's still needed in Ubuntu's kernel though.