From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Subject: Re: 2.6.20-rc6: known unfixed regressions (v2) (part 2) Date: Mon, 29 Jan 2007 15:32:56 -0800 (PST) Message-ID: References: <20070127174230.GN6017@stusta.de> <20070128133344.214070@gmx.net> <1170051963.6454.7.camel@Homer.simpson.net> <45BE5AF0.3030005@cs.wisc.edu> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Received: from smtp.osdl.org ([65.172.181.24]:33985 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964930AbXA2XnO (ORCPT ); Mon, 29 Jan 2007 18:43:14 -0500 In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Mike Christie Cc: Mike Galbraith , Uwe Bugla , Adrian Bunk , Andrew Morton , gd@spherenet.de, alan@lxorguk.ukuu.org.uk, linux-ide@vger.kernel.org, B.Zolnierkiewicz@elka.pw.edu.pl, Jeff Garzik , Jens Axboe , James Bottomley , FUJITA Tomonori , Boaz Harrosh Uwe, others, does this patch fix your problem? It will have a few printk's that it spews out, but if it fixes your problem, at least we know a bit more. Linus --- diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index 2528a0c..f0ff151 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c @@ -333,8 +333,13 @@ static int sg_io(struct file *file, request_queue_t *q, hdr->sb_len_wr = len; } - if (blk_rq_unmap_user(bio)) + if (rq->bio != bio) + printk("rq->bio = %p, bio = %p\n", rq->bio, bio); + + if (blk_rq_unmap_user(rq->bio)) { + printk("blk_rq_unmap_user failed!\n"); ret = -EFAULT; + } /* may not have succeeded, but output values written to control * structure (struct sg_io_hdr). */