From patchwork Tue Apr 2 19:58:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10882263 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 DD7D71390 for ; Tue, 2 Apr 2019 19:58:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C39AA28684 for ; Tue, 2 Apr 2019 19:58:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4702288D3; Tue, 2 Apr 2019 19:58:27 +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.9 required=2.0 tests=BAYES_00,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 5CF4528684 for ; Tue, 2 Apr 2019 19:58:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726329AbfDBT61 (ORCPT ); Tue, 2 Apr 2019 15:58:27 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37517 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfDBT60 (ORCPT ); Tue, 2 Apr 2019 15:58:26 -0400 Received: by mail-pf1-f196.google.com with SMTP id 8so6908907pfr.4 for ; Tue, 02 Apr 2019 12:58:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ODJiStmOW2wG5irqZd8Dpgi4z2lx3Xau1Ko8baIGlkg=; b=gxE/nZcuVjB5VCzWV6Sor3/yAbt1/VerTCX4Cyn3uY/WyAPQb9kfd647bniCj05doh OGpz2wmW2mKZZLaWgesJto65tPHKW0K88wzOBJWjtxe8pqLdpPeiwKw9tCkepVF3qfVW TmE89WSroSiVfbDyJh2ovQgu8liE4dvwwEZNRUEh4cup/0RQ29roFYX13V3a7oSSyPS/ r9GR3nJrWbJXxTHcY97va2Fq32vMohHEHb1aJHSFIpglLzmI7l/p4er58PM3squC5Jkf ugQTA+pe/7EQzGDLyFQIIfQIOWub2J2afaP2/AGwiYCYkdtQPojWCmqtBNNOAmuiVd7j 2Mfg== X-Gm-Message-State: APjAAAXh5hFVdDAquhgPBX7cQgNz92grSTrmaZfggMKT6zjVDXnulPiT I7oZRLPjd95n2z8aCPiX7WQ= X-Google-Smtp-Source: APXvYqwnLDr7Ulht+bGFSPOxDBz4yilmvrMlmX1BxUIIwRBvaMkEGIbuTW5UhWxPdaTqe26RCeYJTA== X-Received: by 2002:aa7:8453:: with SMTP id r19mr43292483pfn.44.1554235105843; Tue, 02 Apr 2019 12:58:25 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id o5sm49055490pfa.135.2019.04.02.12.58.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 12:58:25 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: Mike Christie , Christoph Hellwig , target-devel@vger.kernel.org, Bart Van Assche Subject: [PATCH 00/11] SCSI target patches for kernel v5.2 Date: Tue, 2 Apr 2019 12:58:04 -0700 Message-Id: <20190402195815.254796-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT MIME-Version: 1.0 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 Hi Martin, This patch series fixes a few bugs and also simplifies the SCSI target code. Please consider these patches for kernel v5.2. Thanks, Bart. Bart Van Assche (11): target/core: Fix a race condition in the LUN lookup code target/core: Rework the SPC-2 reservation handling code target/core: Release SPC-2 reservation upon initiator logout target/core: Remove a set-but-not-used member variable from the XCOPY implementation target/core: Simplify LUN initialization in XCOPY implementation target/core: Make the XCOPY setup code easier to read by inlining two functions target/iscsi: Detect conn_cmd_list corruption early target/iscsi: Only send R2T if needed target/iscsi: Handle too large immediate data buffers correctly target/iscsi: Make iscsit_map_iovec() more robust target/iscsi: Make sure PDU processing continues if parsing a command fails drivers/target/iscsi/iscsi_target.c | 118 ++++++++++++++++------- drivers/target/iscsi/iscsi_target_util.c | 5 + drivers/target/target_core_configfs.c | 5 +- drivers/target/target_core_device.c | 4 +- drivers/target/target_core_pr.c | 33 ++++--- drivers/target/target_core_pr.h | 1 + drivers/target/target_core_tmr.c | 2 +- drivers/target/target_core_transport.c | 10 ++ drivers/target/target_core_xcopy.c | 92 +++++------------- include/target/iscsi/iscsi_target_core.h | 1 + include/target/target_core_base.h | 4 +- include/target/target_core_fabric.h | 1 + 12 files changed, 150 insertions(+), 126 deletions(-)