From patchwork Tue Jul 12 13:29:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Yan X-Patchwork-Id: 9225317 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 D367E604DB for ; Tue, 12 Jul 2016 13:29:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4EF0265F9 for ; Tue, 12 Jul 2016 13:29:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9CCC27BFA; Tue, 12 Jul 2016 13:29:45 +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 4BEC0265F9 for ; Tue, 12 Jul 2016 13:29:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752566AbcGLN3n (ORCPT ); Tue, 12 Jul 2016 09:29:43 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36273 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752458AbcGLN3m (ORCPT ); Tue, 12 Jul 2016 09:29:42 -0400 Received: by mail-pf0-f195.google.com with SMTP id i123so1082800pfg.3; Tue, 12 Jul 2016 06:29:42 -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=lIYi8i7x+duzsuuUfPV+aO8VYb0wir4yGQrhwTssrt4=; b=gdDTyGf+8lye4/9HpMs/jYA9JbIGZCx4K8b4zr2FdH8CFTFz7v+r37Da19nJpT7Qqe 5n4zTlnvfCZWZ7cMF5N7x8gVdm+VOvhgDO7pVKStVf3CPzhi80FYelkFSoRO/KbUj9hk o/cri1eW0XiLDC5UN0suPJbkvwc6qto/2Adfe5gzbSCNWNa3F76BKpf7fxXucmo9jcqo SoiJ0uMrIfGdiJxawP5tuqEH/DfPiNJXcyh6gVFb3sbqPYT7YtFTcrjv8pgAIoxWdHHo OM6WkNPjxwpSfi6hr9YqGwRXuh8kXA36H4abcdOt4vrocEshvFvMbPa73RIbX49acD88 gKXA== 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=lIYi8i7x+duzsuuUfPV+aO8VYb0wir4yGQrhwTssrt4=; b=I6AjY34sY15ulNpv8OoosgJhVkFCv16mB2faqoZiRKUF7rBoRZeSgvZwvNQzeeQ02d jqlNHlHbGXO+XS123U9473uaWZ2K9d49zmg+wDjjnmry79lshUc2k5kq4Homopc+KkiF Yjz2yJyyPxGD9TRy77xxH0XbadOJYId8h2ZVi9y8ks6woyKHkALKgSoXGbizynl5maV1 3lSSEh5MXXnaGd7yFoBFuysaPq3EuQOWZ1nZG6hFOqfCWelzv5J4HakB3ht9pUXcivl+ F9cTSvGQwaI2vJ5HbOwQTSYLKhGfsijApgjE3M/M8VBXXrU9VCGm01N2f4G3JMSM3eYZ bkMg== X-Gm-Message-State: ALyK8tKZfIodX0b7OnvRZseMlodq/QH2VfMSM9PkUzngClnjyfwToXWXMGVkv5BkIK1Q6g== X-Received: by 10.98.102.221 with SMTP id s90mr3926343pfj.69.1468330181428; Tue, 12 Jul 2016 06:29:41 -0700 (PDT) Received: from localhost.localdomain ([2404:c805:e00:4700:ae22:bff:fe29:e60c]) by smtp.gmail.com with ESMTPSA id e126sm4796076pfc.5.2016.07.12.06.29.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2016 06:29:40 -0700 (PDT) Message-ID: <5784f0c4.8469620a.ab9e4.ffff9997@mx.google.com> X-Google-Original-Message-ID: <20160712132935.1811-1-me> From: tom.ty89@gmail.com X-Google-Original-From: me To: tj@kernel.org Cc: linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, Tom Yan Subject: [PATCH resend 1/2] libata-scsi: set CmdQue bit in standard INQUIRY data to 1 Date: Tue, 12 Jul 2016 21:29:34 +0800 X-Mailer: git-send-email 2.9.0 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 Avoid performance bottleneck when being SCSI pass-through'd to virtual machines with other OSes (e.g. Windows) via virtio-scsi and scsi-block in qemu. Ref.: https://github.com/YanVugenfirer/kvm-guest-drivers-windows/issues/63 Signed-off-by: Tom Yan diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index bfec66f..0a35164 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -2097,7 +2097,10 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) 0, 0x5, /* claim SPC-3 version compatibility */ 2, - 95 - 4 + 95 - 4, + 0, + 0, + 2 }; VPRINTK("ENTER\n");