From owner-svn-src-head@FreeBSD.ORG Sat Apr 16 08:38:11 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC54A106566C; Sat, 16 Apr 2011 08:38:11 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CA8858FC08; Sat, 16 Apr 2011 08:38:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p3G8cBLa097072; Sat, 16 Apr 2011 08:38:11 GMT (envelope-from jh@svn.freebsd.org) Received: (from jh@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p3G8cBjU097070; Sat, 16 Apr 2011 08:38:11 GMT (envelope-from jh@svn.freebsd.org) Message-Id: <201104160838.p3G8cBjU097070@svn.freebsd.org> From: Jaakko Heinonen Date: Sat, 16 Apr 2011 08:38:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220690 - head/sys/cam/scsi X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2011 08:38:12 -0000 Author: jh Date: Sat Apr 16 08:38:11 2011 New Revision: 220690 URL: http://svn.freebsd.org/changeset/base/220690 Log: Move a comment to the right place. The rearrange done in r208928 left the comment to a wrong place. Modified: head/sys/cam/scsi/scsi_da.c Modified: head/sys/cam/scsi/scsi_da.c ============================================================================== --- head/sys/cam/scsi/scsi_da.c Sat Apr 16 07:32:57 2011 (r220689) +++ head/sys/cam/scsi/scsi_da.c Sat Apr 16 08:38:11 2011 (r220690) @@ -1231,10 +1231,6 @@ daregister(struct cam_periph *periph, vo TASK_INIT(&softc->sysctl_task, 0, dasysctlinit, periph); /* - * Register this media as a disk - */ - - /* * Add async callbacks for bus reset and * bus device reset calls. I don't bother * checking if this fails as, in most cases, @@ -1291,6 +1287,9 @@ daregister(struct cam_periph *periph, vo else if (softc->minimum_cmd_size > 12) softc->minimum_cmd_size = 16; + /* + * Register this media as a disk. + */ softc->disk = disk_alloc(); softc->disk->d_devstat = devstat_new_entry(periph->periph_name, periph->unit_number, 0,