From patchwork Fri Aug 17 10:19:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Javier_Gonz=C3=A1lez?= X-Patchwork-Id: 10568579 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 29EF81390 for ; Fri, 17 Aug 2018 10:19:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18EED2B2D2 for ; Fri, 17 Aug 2018 10:19:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D2CA2B2E4; Fri, 17 Aug 2018 10:19: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,DKIM_SIGNED, DKIM_VALID,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 9F1DE2B2D2 for ; Fri, 17 Aug 2018 10:19:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726376AbeHQNWR (ORCPT ); Fri, 17 Aug 2018 09:22:17 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:47043 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbeHQNWQ (ORCPT ); Fri, 17 Aug 2018 09:22:16 -0400 Received: by mail-ed1-f68.google.com with SMTP id o8-v6so4234786edt.13 for ; Fri, 17 Aug 2018 03:19:24 -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=k7F7VzVtZRn2IELLNVJ9Ybxj+V1DJvKB3OCMFLfIK/Y=; b=IBSojf8os4t/cPcAIhpt9LqN91j5jOqD728atmzztSMgJPUqBDZ8tjaJOjgrDoIF7Z uJvq2h5WAVcVf+2CIKhYBT3XT5fzMdL+gTMIbiX4Z0xL0jdTQUHLECdWddPJ6UT5Lacw fIWBQM952/yo6J7IXsSHTqQHB3XKeZn1ImkFaQeVuw2BFOiFLBiXcHV6uMBBGSfBH9pB voyMMXI0FEgvkymK/FQkBbM2uilk6QUeEfFa+dHalMz/qBj7trBPYbil978dFHbDrx8I e6nc8QyxO+tk2BJOHxd5BALA76TFk2/N8NoWO3vKGDoIJZqEK+irTMZ20JtF0ZslOHXg tO/Q== 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=k7F7VzVtZRn2IELLNVJ9Ybxj+V1DJvKB3OCMFLfIK/Y=; b=UNPLea8CWG3MXsVTnzRnsPbuC8S+Cx+Bxdu8kELCGuLdoHBb91mwR1oWwmNKkj2R3G /KbhuEwdmMaGMACVq36UhRrMU7zNtz9u5CIGIbltRCfOtnt1qZAbXHrwZ7hP5SWj/zBw aqKk7szmYfx8LA4i5y02siJjsV60NjFM3m2BR2lCS7a2o8zWHAxjvViyxnGv6cm3ujPt OM+z5IrTB77Jblcr/vIEbGpYmx0xJaXSphLhcVGKD5fFh8Bc1juR9SlY1whg1OUmZTYt xmSKuXyMkRf/CWfUd4HI8xXLXLB55g6r2/OKXhZeJ2d/DWHUJyNTaTx6X+ENcpDXzp8A 5o5A== X-Gm-Message-State: AOUpUlFAotTC/oTc7ZE7jKxUYOtJBXDSnud2LAhPLytOZMK42TbpP/qU h6tBwSFR2YOtaGrc0njnl2m7hLDG1e4= X-Google-Smtp-Source: AA+uWPwx6j0QkjUB5uY4qn93e/zI3sItDp+q5rywrHKZL6TVWlONT0XpR0aqTtPPIXkRRHofc01VJg== X-Received: by 2002:a50:865b:: with SMTP id 27-v6mr40228529edt.42.1534501164018; Fri, 17 Aug 2018 03:19:24 -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 v26-v6sm1442563eds.43.2018.08.17.03.19.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Aug 2018 03:19:23 -0700 (PDT) From: " =?utf-8?q?Javier_Gonz=C3=A1lez?= " X-Google-Original-From: =?utf-8?q?Javier_Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Javier_Gonz=C3=A1lez?= Subject: [V3 PATCH 0/2] lightnvm: pblk: take write semaphore on metadata Date: Fri, 17 Aug 2018 12:19:08 +0200 Message-Id: <1534501150-11906-1-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP # 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 (2): lightnvm: pblk: refactor metadata paths lightnvm: pblk: take write semaphore on metadata drivers/lightnvm/pblk-core.c | 352 +++++++++++++++++++-------------------- drivers/lightnvm/pblk-gc.c | 2 +- drivers/lightnvm/pblk-recovery.c | 4 +- drivers/lightnvm/pblk.h | 5 +- 4 files changed, 178 insertions(+), 185 deletions(-)