From patchwork Tue Nov 27 23:51:54 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: 10701627 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 AC2B313BB for ; Tue, 27 Nov 2018 23:52:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AD3B2C967 for ; Tue, 27 Nov 2018 23:52:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EA342C9CC; Tue, 27 Nov 2018 23:52:24 +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 245CD2C967 for ; Tue, 27 Nov 2018 23:52:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726356AbeK1Kv4 (ORCPT ); Wed, 28 Nov 2018 05:51:56 -0500 Received: from com-out001.mailprotect.be ([83.217.72.83]:51869 "EHLO com-out001.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbeK1Kv4 (ORCPT ); Wed, 28 Nov 2018 05:51:56 -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=deZjNw7rnGzh+OHK21AuVEGafquMmVJB2bL9n44Ulg0=; b=rmQBo82Zbg52 go0kvhW1dX7AMgr4jJwbt6wSNH+XEgA7z0r384srsns6llGCN1h9A8sMc237VBHGczqk1jiElUa0G cw7GhsIL4jVSAE6s9UYpPbmd2YgNzPUWLNfRTTJ7g/t9WpMOdnxR1V8yw5Eca9z1yBgCXDgcHhPjz 9V927T1LpOxOLzobZLNj5Nf6NFOOjEvcC84vwlkFQKCPLIxxQghKiZ4rEoOegSApjB0Be36qbWxza clxbROqZ3Svbw21gSa72Xq7sOTuC6f3n65I50l/k/WOyg5D7KtOSReMJoKBcpA48zPfTmXAV96HFg 6Fcof3hSGnDXrXsDcWw7pw==; Received: from smtp-auth.mailprotect.be ([178.208.39.159]) by com-mpt-out001.mailprotect.be with esmtp (Exim 4.89) (envelope-from ) id 1gRn9N-0009yB-9p; Wed, 28 Nov 2018 00:52:18 +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 3D193C0504; Wed, 28 Nov 2018 00:52:15 +0100 (CET) From: Bart Van Assche To: "Martin K . Petersen" Cc: Christoph Hellwig , target-devel@vger.kernel.org, Bart Van Assche Subject: [PATCH v2 00/10] Make ABORT and LUN RESET handling synchronous Date: Tue, 27 Nov 2018 15:51:54 -0800 Message-Id: <20181127235204.186731-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.0.rc0.387.gc7a69e6b6c-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.06) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5i08tioNvSUwnbUYmmn9b3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XG55oeqRZoYKir3ci7Ul53cHIFHav Qpo3FUDrLYIQ 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. Changes compared to v1: restored the __GFP_RETRY_MAYFAIL flag in patch 2/10 which had been left out accidentally. 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 | 406 ++++++++----------- 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, 222 insertions(+), 323 deletions(-)