Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3528717imm; Sun, 14 Oct 2018 22:52:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV60+8AZlivDDpg+jlMiOWtM6ahTjZ9mAzzqiu7xDF7HR2JYvnn9JiCn1aB7aZz5oEAx95JyZ X-Received: by 2002:a17:902:9f97:: with SMTP id g23-v6mr15518316plq.68.1539582761739; Sun, 14 Oct 2018 22:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539582761; cv=none; d=google.com; s=arc-20160816; b=QXNQf62N0u3QrR1DR6x2MfubgMH1XURzJ/3p1rnn04WNB8p4OaFmdflG4own+wsU4L /Jb6OsLReuX469sn+DOQ51h+wfEM+gQJgK6c6uNxRFJRyff3lkz2wdNPgmYNv9RvmNwT jI29Byn9fa7GWrSyXepGnnw3WDTuQQm6kegH1AwqKOULGGWJ2gS6i2nb03CwCB0xv9rY Dmm6s81+ohKDzZxxUnrdlgXp0TWbtpq5fumX6kc4syMDDelZGN5/gj71rFaKfF2M40Nu y8xfeSyxcKIBErRPcMxJj6bENO78khk4qgFULe9pcdt27uXqb/Wpm8UfrekYRf3STKJj 4X3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u8SqXO869Fypoollilqk2m6Wy2EBIusIKW9x1jr+Mp0=; b=co7/8O8CEinHfL2N7CWN4EA+J3BUypx03NPeSvsjJbrWqUE9oP3SjMiQqr1Vpmzs59 lsXS5CcCvww8uAnM2zNd3D+YWcMpKdSFyGp6lnmxYSzKNemOguUPUP4Sle82/QDUoDjq G9Yh0eRkcLEF9/Xi5aLzrt7HaPwiLKkA0SD7B1+WXlrQwV1fEe+9nudNzkkv9KUbaVAu 9XZ4lP08IFlofUoPNgci3D9BVWnnb/GSro1jUX4PAe7IN1X3ShvBNjLNkOLOxOPboXS3 U7DCOZleV/A9olSccexXPx54xGb0qGXMHREONin0KuBwr+kzG17yYtn5O5AvYaag+To9 HGdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fUmsnBE8; 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 p9-v6si9133826pfh.232.2018.10.14.22.52.26; Sun, 14 Oct 2018 22:52:41 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fUmsnBE8; 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 S1726534AbeJONft (ORCPT + 99 others); Mon, 15 Oct 2018 09:35:49 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54338 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbeJONft (ORCPT ); Mon, 15 Oct 2018 09:35:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=u8SqXO869Fypoollilqk2m6Wy2EBIusIKW9x1jr+Mp0=; b=fUmsnBE8QxChKwNEfL/UpFNST yTd3PPFdkUBXEVbssds7FD+aqs65YlgMsjuHiuwK03KZvcfDK89hRHzRpvKrKTfYOsx//rKQ1fH2n C1mnr5MV2bstwKqUbc59yrWCKsOFGmHwx7YGhdb85I1dkkQBtgy2OVmD9MJN9ws4nCDyq6lByienN snZYlyGtpsbuZDKe6MtHZtPjP3QDRLiE3w9yShYKRZFiCHC3hPOCc46jlpU7BK62pWCrI9HgXA23C 2LFHRSQbRJ8otJTljwtC8lEHuFBjfejZt4YQDZ4NL5WkI6ut2cqFVu1khTgdyZ2QvtfiozgcQkkrZ wh3B9jUhg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gBvnN-0006uc-KS; Mon, 15 Oct 2018 05:52:01 +0000 Date: Sun, 14 Oct 2018 22:52:01 -0700 From: Christoph Hellwig To: Finn Thain Cc: Christoph Hellwig , "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 Message-ID: <20181015055201.GA21295@infradead.org> References: <91b9ff9fc19ba40e3a2562171c8cd78a2ce7dc79.1539497520.git.fthain@telegraphics.com.au> <20181014154753.GA19252@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 15, 2018 at 10:13:37AM +1100, 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? Yes.