From patchwork Tue Nov 6 17:17:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10670867 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B212517D4 for ; Tue, 6 Nov 2018 17:18:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DBAB2AA17 for ; Tue, 6 Nov 2018 17:18:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8218C2AA16; Tue, 6 Nov 2018 17:18:36 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 BD6E52AA0E for ; Tue, 6 Nov 2018 17:18:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389463AbeKGCoq (ORCPT ); Tue, 6 Nov 2018 21:44:46 -0500 Received: from com-out001.mailprotect.be ([83.217.72.83]:57643 "EHLO com-out001.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389427AbeKGCoq (ORCPT ); Tue, 6 Nov 2018 21:44:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mailprotect.be; s=mail; h=Content-Transfer-Encoding:MIME-Version:Message-Id :Date:Subject:Cc:To:From:reply-to:sender:bcc:in-reply-to:references: content-type; bh=CeNIAm1yIoEpGWQQisI+cb410IjHu6mYs/b/vrVxi8E=; b=I1WpVXllXu9u 4heDhdzZGy60rhs4Nqu90Gn3AnjAj4+xaxVWt0OjUnfXchP70WYlmkJg0hnkcCCjoMetDaOxGj3PI jJImhmn+//EIlODYX8xzuMxz+DrLAIVEyIh4d35CZ8YE408JOtCU4izqWOMJdXMfGD1jkFOFA17Kj QWDi+D1ws1IQcioktAJWSESfZc/SrBw2IJKnVQ3Z56bHKi0UtPtnYfkQRtcjhOISgYMPTVAZ3r8e2 fpH2b6hn5f+GF3eAHSlo6u1Jss6WrsozJdY02f0pHhqH5eVErO0gm/JJhp2JVZ78iSPN2YR7DmXPP nmlWvBmpjvbfkEYg0G6nqQ==; Received: from smtp-auth.mailprotect.be ([178.208.39.159]) by com-mpt-out001.mailprotect.be with esmtp (Exim 4.89) (envelope-from ) id 1gK4zk-000CIm-04; Tue, 06 Nov 2018 18:18:28 +0100 Received: from desktop-bart.svl.corp.google.com (unknown [104.133.8.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.mailprotect.be (Postfix) with ESMTPSA id A0EBCC09E2; Tue, 6 Nov 2018 18:18:24 +0100 (CET) From: Bart Van Assche To: "Martin K . Petersen" Cc: Christoph Hellwig , target-devel@vger.kernel.org, Bart Van Assche Subject: [PATCH 00/10] Make ABORT and LUN RESET handling synchronous Date: Tue, 6 Nov 2018 09:17:08 -0800 Message-Id: <20181106171718.89594-1-bvanassche@acm.org> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog MIME-Version: 1.0 X-Originating-IP: 178.208.39.159 X-SpamExperts-Domain: mailprotect.be X-SpamExperts-Username: 178.208.39.128/27 Authentication-Results: mailprotect.be; auth=pass smtp.auth=178.208.39.128/27@mailprotect.be X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.05) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5mRAtz0Hc15xWgNIdx5Gh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0SF3F6RYOYr2 X-Report-Abuse-To: spam@com-mpt-mgt001.mailprotect.be Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello Martin, This is a respin of the patch series that makes ABORT and LUN RESET handling synchronous. Compared to last time when this patch series was posted, the actual patch that makes task management function handling synchronous has been split into three patches. That makes the changes easier to follow. Please consider this patch series for kernel v4.21. Thanks, Bart. Bart Van Assche (10): target/tcmu: Fix queue_cmd_ring() declaration target/core: Use kvcalloc() instead of open-coding it target/core: Simplify transport_clear_lun_ref() target/core: Make sure that target_wait_for_sess_cmds() waits long enough target/core: Use system workqueues for TMF target/core: Make it possible to wait from more than one context for command completion target/core: Simplify the code for aborting SCSI commands target/core: Fix TAS handling for aborted commands target/core: Make ABORT and LUN RESET handling synchronous target/core: Reduce the amount of code executed with a spinlock held drivers/target/iscsi/iscsi_target.c | 11 +- drivers/target/iscsi/iscsi_target_configfs.c | 2 + drivers/target/iscsi/iscsi_target_erl1.c | 28 +- drivers/target/target_core_device.c | 17 - drivers/target/target_core_internal.h | 2 - drivers/target/target_core_tmr.c | 52 ++- drivers/target/target_core_tpg.c | 1 - drivers/target/target_core_transport.c | 405 ++++++++----------- drivers/target/target_core_user.c | 2 +- drivers/target/target_core_xcopy.c | 6 +- include/target/target_core_base.h | 7 +- include/target/target_core_fabric.h | 11 +- 12 files changed, 221 insertions(+), 323 deletions(-)