From patchwork Fri Dec 2 10:33:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Bogdanov X-Patchwork-Id: 630769 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5634EC47088 for ; Fri, 2 Dec 2022 10:34:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232586AbiLBKef (ORCPT ); Fri, 2 Dec 2022 05:34:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233113AbiLBKdq (ORCPT ); Fri, 2 Dec 2022 05:33:46 -0500 Received: from mta-01.yadro.com (mta-02.yadro.com [89.207.88.252]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 024C2CE400; Fri, 2 Dec 2022 02:33:43 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id 8469941209; Fri, 2 Dec 2022 10:33:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yadro.com; h= content-type:content-type:content-transfer-encoding:mime-version :x-mailer:message-id:date:date:subject:subject:from:from :received:received:received:received; s=mta-01; t=1669977221; x= 1671791622; bh=6v43X7E++ztoCu7qEt9HLwDNOMmCn6V2ukk+F8GW1zQ=; b=F 3yGwtF5NzwGrq3EVjzaw+lzlQq+Wcis4KE/5M/78s5judA+X0UO3k7qRWLxjk/ZM teetLwyBZ+m87CJkiv1e7C8JM7T5WOUeFskYEwmQ156u+ADuX3CodLym0/pNnacS 2k30zpqNkaQe7HmiK7/dHffMUXObSrFHRmAsLk46Fw= X-Virus-Scanned: amavisd-new at yadro.com Received: from mta-01.yadro.com ([127.0.0.1]) by localhost (mta-01.yadro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j9inCKn04B4e; Fri, 2 Dec 2022 13:33:41 +0300 (MSK) Received: from T-EXCH-01.corp.yadro.com (T-EXCH-01.corp.yadro.com [172.17.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Postfix) with ESMTPS id 9998D40889; Fri, 2 Dec 2022 13:33:40 +0300 (MSK) Received: from T-EXCH-08.corp.yadro.com (172.17.11.58) by T-EXCH-01.corp.yadro.com (172.17.10.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Fri, 2 Dec 2022 13:33:40 +0300 Received: from NB-591.corp.yadro.com (10.199.18.20) by T-EXCH-08.corp.yadro.com (172.17.11.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.9; Fri, 2 Dec 2022 13:33:40 +0300 From: Dmitry Bogdanov To: Martin Petersen , CC: , , Dmitry Bogdanov Subject: [RESEND v2 0/4] target: fix bugs in Persistent Reservations Date: Fri, 2 Dec 2022 13:33:27 +0300 Message-ID: <20221202103331.14297-1-d.bogdanov@yadro.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.199.18.20] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-08.corp.yadro.com (172.17.11.58) Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This patch set fixes few rare bugs and deviations from standard in PREEMPT AND ABORT and REGISTER AND MOVE operations. v2: remove superfluous parentheses fix indentation Dmitry Bogdanov (4): target: core: fix preempt and abort for allreg res target: core: fix memory leak in preempt_and_abort target: core: abort all preempted regs if requested target: core: new key must be used for moved PR drivers/target/target_core_pr.c | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-)