From owner-freebsd-scsi@FreeBSD.ORG Mon Mar 1 01:23:47 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4D1A1065670 for ; Mon, 1 Mar 2010 01:23:47 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-iw0-f191.google.com (mail-iw0-f191.google.com [209.85.223.191]) by mx1.freebsd.org (Postfix) with ESMTP id 7E6E88FC15 for ; Mon, 1 Mar 2010 01:23:47 +0000 (UTC) Received: by iwn29 with SMTP id 29so1255073iwn.27 for ; Sun, 28 Feb 2010 17:23:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=v4sWtQYL4o3z2szPTrJvjGslFwwzLHarlgRZEy2YpwM=; b=bZqqiDaWnASR5bFXsAQ1OULAld8iEl8GWErew9M/uNJNbj7ONo6xrcTmnKbSTVDM8x OlwYhdWQe6J5jJUjxrIsgBkSU0DBOPYDsHvvr4gdRSPJ67iowX15crIvpzJF79InBtqC 51wTibCLfDfte1nZ5bOLxKR8WJt3asXhVWso0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; b=sHr7AKb9ICQ2D2xUttQ8M3gU882H+DcVoj/AmSHiwCaNbighSI66saEfhOhqxJpFHu R2z5jRST4SOI6GEaJEbQ+tp/yBd66xYPcwXIY/A4u8MacZ5tc4NW9hHngh8n4eFVWKEU /R8r2KzcfeTLR69e88BMoemnMQ63hYV9pfZx0= MIME-Version: 1.0 Sender: asmrookie@gmail.com Received: by 10.231.146.66 with SMTP id g2mr209904ibv.60.1267404903123; Sun, 28 Feb 2010 16:55:03 -0800 (PST) Date: Mon, 1 Mar 2010 01:55:03 +0100 X-Google-Sender-Auth: d548a7ee3e84614c Message-ID: <3bbf2fe11002281655i61a5f0a0if3f381ad0c4a1ef8@mail.gmail.com> From: Attilio Rao To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: "Justin T. Gibbs" Subject: How is supposed to be protected the units list? X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 01:23:47 -0000 Hello, I have a question that I've been unable to reply reading the code. Someone could point me to documentation explaining how the unit tailq (within a struct periph_driver) is supposed to be locked? I'm not sure how it is assured consistency of accesses to the list and more important how is ensured that the periphs composing it doesn't go away as I don't see any reference bump for objects inserted there. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein