From patchwork Mon May 23 19:28:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Yan X-Patchwork-Id: 9132309 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 812B46075F for ; Mon, 23 May 2016 19:28:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 768682824D for ; Mon, 23 May 2016 19:28:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A07228219; Mon, 23 May 2016 19:28:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11DE128219 for ; Mon, 23 May 2016 19:28:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753288AbcEWT2y (ORCPT ); Mon, 23 May 2016 15:28:54 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:33214 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbcEWT2x (ORCPT ); Mon, 23 May 2016 15:28:53 -0400 Received: by mail-pa0-f65.google.com with SMTP id f8so7016743pag.0; Mon, 23 May 2016 12:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:subject:date; bh=jK5rLzstKkBpAqsJwh9NcKIb0Ga7/ZCnBwTBXg17PV0=; b=tMDCC/1O5zEVxPVbviOlvajzJ2LaqoUrQEH6Lmq38+dazHDsEuO7LOGYOMwxtzGWlY 6gOof1WhukCxZa2vn2/WzTQKkDQUjIGQEc5booBRyeYKXsnbQQ9aW0jLNLFqRK5sN5GG YI6v8LpJt7NT92hSxzAPzI5C+un/LV8tUdPOJXVLm+gdZgxh63Yl1UlQ8lrxsXk/ohJa Ej2oscRUhYS07jgNC5IC8ryeR1BzEHZ6OBX9OxCurZiEMm7lPVcewJD+qUkb+YXZlp3i l/m59whebsrvQl9hH4bio2BrqUORxrL3X7LBiFoGV4FUXN26Xl7W0Z1PhHwSZJDRWMHl 6gCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:from:to:cc:subject:date; bh=jK5rLzstKkBpAqsJwh9NcKIb0Ga7/ZCnBwTBXg17PV0=; b=HaF3bxqcwTWFX+kUvzPZFXzJFmnEBpsr1ywZGq1G14vZQODTPRwo49a1JtB2KQP6VK LmrCtrPbNKHWYmU/W+4SZBGwC46AguVEpGT2iUc55BzfcV8zWuIz8+Ipe2xJAaD47uHZ 1BGjmPQCme8Gs36WahH9KRwkzF7JdYSAagwaTlpAgJGqoi1kJ4R5AaEky0VYKqgNT3PN D6zJgZYYT9bX0iOuG3ZaAPT8A8rAxZ+Hj4Uj8wYWtiGKbTF7KISsJHJWyvZvQQzQpcfZ iB83WrOR9rTXClxe9xm70w3TTj7iBFwC8H9IrHXMLFA25OVICG9k7VzryXCR4Cpc43fx a5zg== X-Gm-Message-State: ALyK8tKZj5IEnq6w8FexQeFtGUYRG9+ID969B53I+dbztLKrAekeGetrpfU0SIuVCvD/ow== X-Received: by 10.67.13.144 with SMTP id ey16mr658535pad.147.1464031732401; Mon, 23 May 2016 12:28:52 -0700 (PDT) Received: from localhost.localdomain ([2404:c805:e00:5d00:f034:41ff:febb:a8ef]) by smtp.gmail.com with ESMTPSA id b67sm9255250pfc.74.2016.05.23.12.28.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 May 2016 12:28:51 -0700 (PDT) Message-ID: <574359f3.4667620a.6c0f.528f@mx.google.com> X-Google-Original-Message-ID: <1464031724-1243-1-git-send-email-me> From: tom.ty89@gmail.com X-Google-Original-From: me To: gregkh@linuxfoundation.org Cc: kraxel@redhat.com, stern@rowland.harvard.edu, linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org, stable@vger.kernel.org, hdegoede@redhat.com, Tom Yan Subject: [PATCH v2 1/1] uas: remove can_queue set in host template Date: Tue, 24 May 2016 03:28:44 +0800 X-Mailer: git-send-email 2.8.2 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tom Yan Commit 198de51dbc34 ("USB: uas: Limit qdepth at the scsi-host level") made qdepth limit set in host template (`.can_queue = MAX_CMNDS`) redundant. Removing it to avoid confusion. Signed-off-by: Tom Yan Acked-by: Hans de Goede diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index 4d49fce..e03c490 100644 --- a/drivers/usb/storage/uas.c +++ b/drivers/usb/storage/uas.c @@ -848,7 +848,6 @@ static struct scsi_host_template uas_host_template = { .slave_configure = uas_slave_configure, .eh_abort_handler = uas_eh_abort_handler, .eh_bus_reset_handler = uas_eh_bus_reset_handler, - .can_queue = MAX_CMNDS, .this_id = -1, .sg_tablesize = SG_NONE, .skip_settle_delay = 1,