Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp367464imm; Wed, 29 Aug 2018 01:58:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbNCdjI7NdFq7lkqhuhwvBqvUbbc19OOBy7QNhk+PgaCUp8jJH3ahVBmEZTMvGhdr76bhi1 X-Received: by 2002:a63:8e4a:: with SMTP id k71-v6mr4807612pge.45.1535533105495; Wed, 29 Aug 2018 01:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535533105; cv=none; d=google.com; s=arc-20160816; b=t1TAJbYv6g+6TZhx3GCq/Cde6LPVgXyOlyWvm66334l2DnWqIqW2HbtylN/L70yQcf McETlZ/GqBvEQVe4RI2uQAhYgnd6AXVmOGgPmtz57f7RXps4ROIy8wf10WxkhweA/h2X lgmoDuLRvoJjpwWWdg6EAgnINxOzg1SC9lc0SbAzFqSpbK/ZBWFpglDB8vqSH7szDyA3 QMJnPvI182pJw6peZxsRSAmkjXIj8TgR864mG/0g/lk6JqLd2nMKd7MYX7T39r2FgKLP M0FzhUKHbWvSA5NXFS6TjhNqx0YIxxnLEt/LnXkvnMaRsSGapsVt26Nm8mlvs9B36uW3 HlEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=LOWMU9nbKLMRVxYpdWBu3kVYOaxx2yoK/+OTATVMhF0=; b=DMcxW5ZLZzXX0H4qZwFMrziuutYIHQq8ab7+oDV0F/srzUMm5kHK5ffQWC7s7QESPt PwSgsbIAS+NttFi6rsmItefComYZWLbX4xofNXR7Q1Rt0Byav0lDE0PQYO4hLdrhfVKE CYrOKEnKcRlmWpCPouFmqEY/8RgLKoAcBXz041/9KQPlJ+ymecyB1Kv4FE3cBplihe+a WYIoDr5WFHZWpxBuL5KOcnhLhAV0H6q8uR4/jH2qfQO6fhn5phN1hJk57GcYFSAxPuuT wrUNBnYNz7ZNWOJm/3jxdBc2FEMPLVEj2jSG5yc5+0FWGX2cbIZk3D6W1vDnlWUhf+fU Dw8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=zrE6XIc+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21-v6si2974724pll.476.2018.08.29.01.58.10; Wed, 29 Aug 2018 01:58:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=zrE6XIc+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727829AbeH2MwV (ORCPT + 99 others); Wed, 29 Aug 2018 08:52:21 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:34809 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727204AbeH2MwV (ORCPT ); Wed, 29 Aug 2018 08:52:21 -0400 Received: by mail-ed1-f67.google.com with SMTP id u1-v6so3179901eds.1 for ; Wed, 29 Aug 2018 01:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=javigon-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LOWMU9nbKLMRVxYpdWBu3kVYOaxx2yoK/+OTATVMhF0=; b=zrE6XIc+Z4lKyvbMO2XJvcJoqNiUAOynfriuc9PPVstXorGAeCA6Dx5aF3bZmIcdkG lwe+1aylMYEII8zsy+O8o7ovZhLw35oOI2FHVOMjQ3jGWu89e+8WNOs8ktjMSwm1E+Bn phpnXHjMCgNrv/As6NYHrMlGnD61P3klnOYN9q/67UvbJzGu/q8nCIfBgUhexhMsuJno WiG/pMNq2GuGcMABy5ASmf2n1XeoRVH+Gx4Dzl4gzDEyscRgxh8YI2fiTN88xzdZDsM+ ojcsNcXtZg1lmZhFzpH4yaiyr2y9XohU7Xz/Fh5p8peCf0kMsXuPD9EbrYFmngpUl6eV j7CA== 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=LOWMU9nbKLMRVxYpdWBu3kVYOaxx2yoK/+OTATVMhF0=; b=m+0IvVMgK8ZuPQ5qp1/qQ+BzN6wLvp24qjT9La581K6rgZXh/QcIOT9boPZls0ti0M 4RiJg3VET60u+X1FRCzw3HsHZHMstU2BPri4szU3jzc2+Pi/ajxM/CqdHr1Pz4C7a3xH 8FSU2ptxPwb+6Kt8Nyyeq6mfZkCP14Moh6kDa1XeSh7jnaRkJxjAs93ZXbSedk7Ugqor BeqMZkIZN0RGxT+1K/yFOuvcL0Jnk5IBol4UqwkBc490TP34TH3Pz+ZF8QwvwcRilGBG Dw3jsUIk/Y1ctqthbUkodMxrvda2PMNZkTmoxJOqN3JdL030V8bngLIfmbrTj/mpR7a3 9gjQ== X-Gm-Message-State: APzg51BkEW3qrqRbI8Drq9YyBT4iKToUj+rFtbyfBL2iCo3Soo5qUfMT ec5bDrbp/Sasl0QL5XCmolSiKtMXotw= X-Received: by 2002:aa7:c485:: with SMTP id m5-v6mr6468295edq.205.1535532987447; Wed, 29 Aug 2018 01:56:27 -0700 (PDT) Received: from ch-wrk-javier.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id w22-v6sm1867867eda.34.2018.08.29.01.56.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Aug 2018 01:56:27 -0700 (PDT) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [V4 PATCH 0/2] lightnvm: pblk: take write semaphore on metadata Date: Wed, 29 Aug 2018 10:56:17 +0200 Message-Id: <1535532980-27672-1-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org # Changes since V3: - Encapsulate rqd dma allocations to reduce code replication (by Matias) # Changes since V2: - Split the original patch between the metadata refactoring and the semaphore logic. This simplifies the write path, where the semaphore is taken. # Changes singe V1: - Fix double I/O on the read path (by Matias) - Improve commit message (by Jens) This patchset refactors the metadata separate write and read paths, which simplifies how the semaphore is taken for writes. Thanks, Javier Javier González (3): lightnvm: pblk: refactor metadata paths lightnvm: encapsule rqd dma allocations lightnvm: pblk: take write semaphore on metadata drivers/lightnvm/pblk-core.c | 377 ++++++++++++++++++++------------------- drivers/lightnvm/pblk-gc.c | 2 +- drivers/lightnvm/pblk-read.c | 35 ++-- drivers/lightnvm/pblk-recovery.c | 33 ++-- drivers/lightnvm/pblk-write.c | 15 +- drivers/lightnvm/pblk.h | 8 +- 6 files changed, 230 insertions(+), 240 deletions(-) -- 2.7.4