From patchwork Fri May 22 07:57:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nicholas A. Bellinger" X-Patchwork-Id: 6461681 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 83AFC9F1C1 for ; Fri, 22 May 2015 08:00:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B44F920108 for ; Fri, 22 May 2015 08:00:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9C01D20351 for ; Fri, 22 May 2015 08:00:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756705AbbEVIAM (ORCPT ); Fri, 22 May 2015 04:00:12 -0400 Received: from mail-ob0-f170.google.com ([209.85.214.170]:35136 "EHLO mail-ob0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756869AbbEVIAH (ORCPT ); Fri, 22 May 2015 04:00:07 -0400 Received: by obcus9 with SMTP id us9so7847659obc.2 for ; Fri, 22 May 2015 01:00:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fG98yZzO89bCRCRY8tL/krQLbaqT3j/91L51DxWKLLE=; b=mDM4+Zkvzk84np/mpmi5oyDGNPyOcj0eFcHBMtJKkTW+CD9hxMtJ+0kemLUFVAmejG f1R5bY5d2AD49nCowrftpXrvprxWvKZQlVvNCqt5hLJrxKY/AoE2MqtxM+IDVno+nqVq cKf53zFQO6H/9JRDGHVD2wdcmZIwVPqb7iMXZtfv57ExCfa/kQCZauVxI0SjEQlooLd/ kdHx6hVxR7P3XvOZl413vXr/np2VeqPknfNdcCdZYgKs0cWULma92CFOpnLsDzyEzPjS A1vj3PWtc4UEved0KHCPuxcOQk3yuyc7aVgShcE0h3kAxeET3e89qvFwIMLNC7nOZzg+ sdLg== X-Gm-Message-State: ALoCoQkM3yQPXagOKr9eWP8LGsV67ydOb6I4C07Mi3GhEp0rIDFLRCZ2mMpdqDEeqmCG+RETALDu X-Received: by 10.182.250.129 with SMTP id zc1mr5672289obc.47.1432281606528; Fri, 22 May 2015 01:00:06 -0700 (PDT) Received: from localhost.localdomain (mail.linux-iscsi.org. [67.23.28.174]) by mx.google.com with ESMTPSA id h195sm902435oig.1.2015.05.22.01.00.05 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 22 May 2015 01:00:06 -0700 (PDT) From: "Nicholas A. Bellinger" To: target-devel Cc: linux-scsi , linux-kernel , Christoph Hellwig , Hannes Reinecke , Sagi Grimberg , Nicholas Bellinger Subject: [RFC 2/2] loopback: Enable TFO->complete_irq for fast-path ->scsi_done Date: Fri, 22 May 2015 07:57:26 +0000 Message-Id: <1432281446-31080-3-git-send-email-nab@daterainc.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1432281446-31080-1-git-send-email-nab@daterainc.com> References: <1432281446-31080-1-git-send-email-nab@daterainc.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Nicholas Bellinger Go ahead and enable TFO->complete_irq for testing with loopback LLD code, and avoid the extra fast-path queue_work() context switch if no se_cmd special case handling requirements exist. Cc: Christoph Hellwig Cc: Hannes Reinecke CC: Sagi Grimberg Signed-off-by: Nicholas Bellinger --- drivers/target/loopback/tcm_loop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index bd9d11a..562906a 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c @@ -1229,6 +1229,7 @@ static struct configfs_attribute *tcm_loop_wwn_attrs[] = { static const struct target_core_fabric_ops loop_ops = { .module = THIS_MODULE, .name = "loopback", + .complete_irq = true, .get_fabric_name = tcm_loop_get_fabric_name, .tpg_get_wwn = tcm_loop_get_endpoint_wwn, .tpg_get_tag = tcm_loop_get_tag,