From owner-freebsd-arch Sat Mar 22 7: 5: 5 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED25D37B404 for ; Sat, 22 Mar 2003 07:05:04 -0800 (PST) Received: from aslan.scsiguy.com (mail.scsiguy.com [63.229.232.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id C94DF43FA3 for ; Sat, 22 Mar 2003 07:05:03 -0800 (PST) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by aslan.scsiguy.com (8.12.8/8.12.8) with ESMTP id h2MF4QIh063905; Sat, 22 Mar 2003 08:04:26 -0700 (MST) (envelope-from gibbs@scsiguy.com) Date: Sat, 22 Mar 2003 08:04:26 -0700 From: "Justin T. Gibbs" To: Poul-Henning Kamp , arch@FreeBSD.ORG Subject: Re: GEOM ioctl issue. Message-ID: <660822704.1048345466@aslan.scsiguy.com> In-Reply-To: <11639.1048286747@critter.freebsd.dk> References: <11639.1048286747@critter.freebsd.dk> X-Mailer: Mulberry/3.0.2 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > The way we have implemented copyin(9) and copyout(9) depends strongly > on the fact that they are executed in the corresponding thread, it is > not possible to access userland for one thread with copyin/out from > another thread, userland or kernel. Well, if you look at the AIO code, it is possible, it is just a pain in the but. It would be really nice to formalize the correct strategy (is what AIO does correct?) for doing this into copyin_thread(), copyout_thread(), etc. since this is the real cause of your problem. Not that I disagree with your cleanup of the da driver. I like that for aesthetic reasons. I just think that it is unacceptable to say that you cannot have an ioctl handler in a geom class device when all that is stopping you is some vmspace manipulation. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message