Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3406833imm; Sun, 14 Oct 2018 19:46:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV62vDT4VrNt2VvntUOKXqbi9eYTkVZtuS0paC7fifl2bX9fsFspDNKedvqP0iosy+j7B3Qi8 X-Received: by 2002:a63:7e50:: with SMTP id o16-v6mr14264987pgn.89.1539571561032; Sun, 14 Oct 2018 19:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539571561; cv=none; d=google.com; s=arc-20160816; b=A2p3Kc+6VCqELFAlsI0vJ44Uv2XfCeoZQcqHiQZPGTas9L8qF6wezLxZeJt7eA72RC pvZtoMJbnmDKpIGRnmN5npSO17M7dv2XMDBTkcsqJKzSH8DwQlPmK16fvFZHJ6PUF89t g0GhQ/TJOQTdS/1Bj8gBal6/vEkL8fRDz1UTgSjKZrH1IsofrQ4ROxor0VIDC9rNDhb3 Y7h1UKh4Lg4TycdE2ZygwiK/ybRh2gqhI4hr9GFzdxxDr//V2RWowd5SEuSK1LkXagZE wSBrf6V3YFfMu700FoCz2rXWBsCrmIk8qsDB/Z5UEwnc0XqkpweR96RdLecJdl60ifcu YKIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=gpjTCZAfW0wb/VXy5BqE9GYHaLRYaf6P19imip/5qsc=; b=TYgqjlf+tCYwt/BJS71cxoRU2XL51dK2qfCSr0zvvvf0juepZv3ANsANDUCBiB+CvU TPkyT0sJgLR3EU1LkflBxdXgbMb5yFpWHWEuaHAGXZF783Mdh3kmb6yN+Ar/t3cVqSUL VMw9Xbabq1EWTQTD0zddaGLt7BzmY2fq9hwXBkG77mLxNK19uBaIUHJizetw+/mw0n2R yDHilfQB3deETqYz1xF2lBgwHvrdrPQ3qujFXE7sx5LJL15gaAgBXVoyp9K3YfdpPOHl tQG0wCuJK2WKi9k0lq2TrwtRNQHfnVC3IV4dZjUuQF2FbDlTapTNJRJvXaN5Fnrq79O7 Oqyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p74-v6si9591136pfa.44.2018.10.14.19.45.46; Sun, 14 Oct 2018 19:46:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726647AbeJOK2S (ORCPT + 99 others); Mon, 15 Oct 2018 06:28:18 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:33396 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbeJOK2S (ORCPT ); Mon, 15 Oct 2018 06:28:18 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id E689022C32; Sun, 14 Oct 2018 22:45:02 -0400 (EDT) Date: Mon, 15 Oct 2018 13:45:01 +1100 (AEDT) From: Finn Thain To: Christoph Hellwig cc: "James E.J. Bottomley" , "Martin K. Petersen" , Michael Schmitz , Hannes Reinecke , linux-scsi@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/6] esp_scsi: Grant disconnect privilege for untagged commands In-Reply-To: Message-ID: References: <91b9ff9fc19ba40e3a2562171c8cd78a2ce7dc79.1539497520.git.fthain@telegraphics.com.au> <20181014154753.GA19252@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Oct 2018, Finn Thain wrote: > On Sun, 14 Oct 2018, Christoph Hellwig wrote: > > > > + *p++ = IDENTIFY(lp && (tp->flags & ESP_TGT_DISCONNECT), lun); > > > > I think lp should always be non-NULL here. > > > > It's not clear from Documentation/scsi/scsi_mid_low_api.txt, but I guess > that's true for scanning of targets. > > Is it true in general that queuecommand for a device will not occur > before its slave_alloc and not after its slave_destroy invocation? > > (I'm thinking of queuecommand via the other command submission paths, > like ioctl.) > Nevermind. From a closer reading of the Documentation, I see that it is true in general. --