Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2581581imm; Sat, 13 Oct 2018 23:35:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV61m3GEgEka+GC2s9giyw+5soATGfkH252H67z+DKuLIqQzZQplpcndBWf9IWDosVA7wkG3M X-Received: by 2002:a62:60c1:: with SMTP id u184-v6mr12772826pfb.114.1539498928667; Sat, 13 Oct 2018 23:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539498928; cv=none; d=google.com; s=arc-20160816; b=eUroNLSdpg4SaiXd1KG2qb1TkB9Yn2bSBvcNnmD24xOJymykxzaERo16VqdjToGiN7 X65BK6kBVi7LqGa+cjwuc0kPH0r39OuzpDDhOapHnNgqRZTCAJWxdo1+7whCBKjK/ktc 2K6f+2lzEz/9IKAjbePy1rb+Jy4yqZdUA3swxOO1uIQ2ThZlfjPJPayYE7655FMX4drE 3AffSbhlV2euYNS8PCudI/ifDBPoYw21uJAHBdFy+lSvCzV+AEWAwnu3FbdL4J2CESDq AuNbNiXulbPw8A4/AGc+qurUfC3fMoULf+nDS++WmJaPx/ael0220JbCcUnrUmXR07g7 jYig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to; bh=7CNwsiXOoMNf3ur6bnfhr6Txe13+nc4q5j5nAjhkMdg=; b=XvTK5PQwSECGANK+GH64gjUBMJV63/HesHrIkLAIjpEZN83tmIIxQzYpXRgvYiT9hP wG5MiJ6cDc1c63L/hSaOyk6zjvhYCKycZiLfnQMbdn0hcX1fWi1sBqVPWmG0nPlgnxv6 Ewh0bsEfGe09hAb/5zj+3hU0m4wnNmpONvGl0+uz+yGqY9fF3An3ELFzREn5U3f3LRRk Ju/P4+1MYJ1E5NkAn12wOv570lMMR/X/nJF6FQ6ALQyL19nz3bXbLK/K0/GiKwAseZDM KBjzTInJjbL0N/R/yYlOv9Py6lJUFaTgBULaeCgeBWaCK3+BiVWphhLXfNrZPaXAo2+2 VF4A== 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 bb10-v6si6426048plb.359.2018.10.13.23.34.59; Sat, 13 Oct 2018 23:35:28 -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 S1726762AbeJNOOP (ORCPT + 99 others); Sun, 14 Oct 2018 10:14:15 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:42592 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726372AbeJNOOO (ORCPT ); Sun, 14 Oct 2018 10:14:14 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id 2295C2A1CA; Sun, 14 Oct 2018 02:34:18 -0400 (EDT) To: "James E.J. Bottomley" , "Martin K. Petersen" Cc: Michael Schmitz , Hannes Reinecke , linux-scsi@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Message-Id: <91b9ff9fc19ba40e3a2562171c8cd78a2ce7dc79.1539497520.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH v2 3/6] esp_scsi: Grant disconnect privilege for untagged commands Date: Sun, 14 Oct 2018 17:12:00 +1100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A SCSI device is not granted disconnect privilege by an esp_scsi host unless that device has its simple_tags flag set. However, a device may support disconnect/reselect and not support command queueing. Allow these devices to disconnect and improve bus utilization. Tested-by: Stan Johnson Signed-off-by: Finn Thain Tested-by: Michael Schmitz --- drivers/scsi/esp_scsi.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c index 9e5d3f7d29ae..b7c41aa9927c 100644 --- a/drivers/scsi/esp_scsi.c +++ b/drivers/scsi/esp_scsi.c @@ -800,13 +800,9 @@ static void esp_maybe_execute_command(struct esp *esp) build_identify: /* If we don't have a lun-data struct yet, we're probing - * so do not disconnect. Also, do not disconnect unless - * we have a tag on this command. + * so do not disconnect. */ - if (lp && (tp->flags & ESP_TGT_DISCONNECT) && ent->tag[0]) - *p++ = IDENTIFY(1, lun); - else - *p++ = IDENTIFY(0, lun); + *p++ = IDENTIFY(lp && (tp->flags & ESP_TGT_DISCONNECT), lun); if (ent->tag[0] && esp->rev == ESP100) { /* ESP100 lacks select w/atn3 command, use select -- 2.18.1