From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 25 12:24:11 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B057316A41F; Mon, 25 Jun 2007 12:24:11 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 55C4A13C45D; Mon, 25 Jun 2007 12:24:11 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1I2nbz-000Nqm-Sv; Mon, 25 Jun 2007 15:24:07 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-current@FreeBSD.ORG In-reply-to: Your message of Mon, 25 Jun 2007 14:49:29 +0300 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 25 Jun 2007 15:24:07 +0300 From: Danny Braniss Message-ID: Cc: freebsd-hackers@freebsd.org Subject: KSE was Re: open/close/ioctl api change? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2007 12:24:11 -0000 > actually it's the struct thread *tp where my problems are, > this code works fine under 6.2, and did work till some days ago under current. > > static int > iscsi_open(struct cdev *dev, int flags, int otype, struct thread *td) > { > ... > debug(3, "td->td_proc=%p", td->td_proc); > debug(3, "td->td_proc->p_pid=%d pid=%d", > td->td_proc->p_pid, curproc->p_pid); > ... > > the first debug prints out td->td_proc=0 and the next one panics. found the problem, 'option KSE' which is defined now in DEFAULTS, and i'm compiling a module! which does not include DEFAULTS! danny