From owner-freebsd-fs@FreeBSD.ORG Mon Sep 20 15:42:04 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83C1E1065670; Mon, 20 Sep 2010 15:42:04 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id A022C8FC19; Mon, 20 Sep 2010 15:42:03 +0000 (UTC) Received: by eyx24 with SMTP id 24so2022688eyx.13 for ; Mon, 20 Sep 2010 08:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :x-comment-to:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=u0aN8WWkkHoqdx79IiL5UCI57dtZcUql+rFQO5v8oRY=; b=YEEljGodCgLSk96mco/NH2IrX/+qmIJCGPwIhM5xHHXNpa27Qz56OesSj0wwob4fCN GFH2+b4OMLqTUQjgeFttxlcvAXCB2arM3B/RXProindVXU9HteE8HHTvq56JPGkZUNII i3I+/AjkgQ8GxogA0gV8q2QDDsGPps5MKlSdw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:x-comment-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=cBHxFtNnOl7QQaYujckNVKclgfbJRv/gadmDjfpZnF1g8BX/dB8DRvB5mAeJxTaq1F 2IT3DXGS8gHy27HGiZFWlLUtq0Bwc2A/VmwzD7Wp0yrT0EUFcAXeejd0M6u12Xop2TXP 52C4OX9qXqE9atbuuDeDQcHz5CiYn4C3bAAcQ= Received: by 10.213.32.70 with SMTP id b6mr2989130ebd.19.1284997322483; Mon, 20 Sep 2010 08:42:02 -0700 (PDT) Received: from localhost (vpn-195-69-247-164.customer.onet.com.ua [195.69.247.164]) by mx.google.com with ESMTPS id z55sm11155982eeh.21.2010.09.20.08.42.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 20 Sep 2010 08:42:01 -0700 (PDT) From: Mikolaj Golub To: Pawel Jakub Dawidek References: <86d3saawn9.fsf@kopusha.home.net> <20100920132450.GE2410@garage.freebsd.pl> X-Comment-To: Pawel Jakub Dawidek Date: Mon, 20 Sep 2010 18:41:57 +0300 In-Reply-To: <20100920132450.GE2410@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Mon, 20 Sep 2010 15:24:50 +0200") Message-ID: <86k4mg5smy.fsf@kopusha.home.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-fs@freebsd.org Subject: Re: hastd: possible race when a worker is starting X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2010 15:42:04 -0000 On Mon, 20 Sep 2010 15:24:50 +0200 Pawel Jakub Dawidek wrote: PJD> Thanks for the report and analysis. Could you try this patch: PJD> http://people.freebsd.org/~pjd/patches/hastd.patch Before applying the patch I also reproduced deadlock on secondary. After applying the patch I was not able to reproduced the deadlock on both primary and secondary. Also no other new issues have been noticed running patched hastd so far (the problem with hang in wait4() described in other thread persists). So the patch looks good for me :-). -- Mikolaj Golub