From owner-freebsd-current@FreeBSD.ORG Fri May 30 15:40:28 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 443A960C for ; Fri, 30 May 2014 15:40:28 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 21177227F for ; Fri, 30 May 2014 15:40:28 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 37364B94B for ; Fri, 30 May 2014 11:40:27 -0400 (EDT) From: John Baldwin To: current@freebsd.org Subject: [PATCH] Cleanups for hpt27xx(4) Date: Fri, 30 May 2014 11:40:23 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20140415; KDE/4.5.5; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201405301140.23775.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 30 May 2014 11:40:27 -0400 (EDT) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Fri, 30 May 2014 15:40:28 -0000 These patches switch hpt27xx(4) from timeout() to callout() and fix it to use its existing locks in place of Giant for CAM along with some other cleanups. If anyone has any hardware I suspect the ioctl handling is buggy, but I'm more hesitant to touch that unless someone has multiple adapters in a single box. Please be sure to test with INVARIANTS and INVARIANT_SUPPORT enabled. http://people.FreeBSD.org/~jhb/patches/hpt27xx_locking.patch -- John Baldwin