From owner-freebsd-current@FreeBSD.ORG Mon Jun 25 12:40:33 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C795C16A468 for ; Mon, 25 Jun 2007 12:40:33 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id 7141E13C4B0 for ; Mon, 25 Jun 2007 12:40:33 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [89.162.146.170] (helo=skuns.kiev.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1I2nrr-0008k0-CO for freebsd-current@freebsd.org; Mon, 25 Jun 2007 15:40:32 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l5PCeCuI086587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 25 Jun 2007 15:40:12 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l5PCeHLR092310; Mon, 25 Jun 2007 15:40:17 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1/Submit) id l5PCeHkT092309; Mon, 25 Jun 2007 15:40:17 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 25 Jun 2007 15:40:17 +0300 From: Kostik Belousov To: Danny Braniss Message-ID: <20070625124017.GM2268@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+k4iwFkkzu//qJTk" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: ClamAV version 0.90.2, clamav-milter version 0.90.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on skuns.kiev.zoral.com.ua X-Scanner-Signature: 8fcfa5a562f326ba64a474cd1db6e25e X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1175 [June 25 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: freebsd-current@freebsd.org Subject: Re: open/close/ioctl api change? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2007 12:40:33 -0000 --+k4iwFkkzu//qJTk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 25, 2007 at 02:49:29PM +0300, Danny Braniss wrote: > 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 cur= rent. >=20 > static int > iscsi_open(struct cdev *dev, int flags, int otype, struct thread *td) > { > ... > debug(3, "td->td_proc=3D%p", td->td_proc); > debug(3, "td->td_proc->p_pid=3D%d pid=3D%d", > td->td_proc->p_pid, curproc->p_pid); > ... >=20 > the first debug prints out td->td_proc=3D0 and the next one panics. I think you shall start with posting full panic information, and ddb/kgdb output for the trace. There have been some change in KPI (I assume you example is about in-kernel interfaces), but it shall not affect d_open() driver methods. --+k4iwFkkzu//qJTk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGf7ewC3+MBN1Mb4gRApFZAJ9Bi66DLr83DdVGJ131wgyLkLW6wwCgsMUD tefAOyjYwym6lCe26bWhgig= =9+L0 -----END PGP SIGNATURE----- --+k4iwFkkzu//qJTk--