Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp589294imm; Fri, 17 Aug 2018 03:20:53 -0700 (PDT) X-Google-Smtp-Source: AA+uWPybdaPsJxU9NGRpL+w/XKb736EV+YDoq19DRniq4eOSWv9vpRxV/g0M6YPQG2stu6I3ZP2g X-Received: by 2002:a63:ab0c:: with SMTP id p12-v6mr32183763pgf.190.1534501253156; Fri, 17 Aug 2018 03:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534501253; cv=none; d=google.com; s=arc-20160816; b=uwDpGbfSFAkwYRkXwVhUo/qa5Rbht6PD6Os2+C1Xb62ZpLBMcdF18+gEnmj9rKyDaH oM6rpLrr4YJhuE8lxLUqnphINStvgOZEVSeYf5Q4BmhAXdMGAQb7o3qSv8SFsbpelY3L ExktvmkfH2V4l9DjqM+tjgXGhrNYYz6lSmewOZL6Rw8DJWDEuB9FN19XGQvrCe2noUXb ASbr2+zu9nnhRCg14F4Dbpf8UzBhXeS4MZXKWrcfNL7DQQychN/+PxjquWtJfdJZA762 2I7N3CbzbQ1PfTocvInzywhvELbLp/M5oLrPUQtUOOyh8EEwx4IU8eXml2n/luLmsy0z 123g== 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=k7F7VzVtZRn2IELLNVJ9Ybxj+V1DJvKB3OCMFLfIK/Y=; b=xNEMkIQPxhmMLasrh4tSrhjvBAdoP0DomcIbn4NkztuiCpu9B8wIGuoFYkUr9YdQ1D 4I/dbMwbU539Iap3Gy7+yyLTwpoBmtguATBw9upatb4DsSwX6VTYmho+5NLEiDjnA26+ qtEaCJgTTebCwnX/o+PPVtW/jgXSmvAfTwGzda3RpOwHAea3NbuIGcyMRC1cs3LHL98i j1OFzILH9oiM58iCOF4jc9Ym784HwcFUdKNtW4Otu/Cb8bAWrb5XXDPXc4Bh8U/u3G2z qbfRdkX9jYYp6PlUi53TbJo2Bk19gMHZeMP0hIvNeDoBYwGBDXnaY8QrGTaLdZE1o04f ZF4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=IBSojf8o; 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 b16-v6si1786618pgg.342.2018.08.17.03.20.38; Fri, 17 Aug 2018 03:20:53 -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=IBSojf8o; 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 S1726536AbeHQNWR (ORCPT + 99 others); Fri, 17 Aug 2018 09:22:17 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:36267 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbeHQNWQ (ORCPT ); Fri, 17 Aug 2018 09:22:16 -0400 Received: by mail-ed1-f68.google.com with SMTP id k15-v6so4253320edr.3 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=N0la7NeSI1CvjFQR0LKFi0Yr3a15twtBYTago9OkGG7iIO5n1wOfVNYL4KbXqrBLDP sN+YH25lwjoeYcRAnsYugwj+ylZA4//Z24qh0OgBl3hfPllIC4bi6+L+mgQ+l/GPlsrR 8upBvCD8K7zTWFJegFg9bKtOf3Uc8j2cIb1f9UVaI49DauQOpVLnjOH7kXMlcMZUjAnO cZk4EzziCsFrAzIz8c9Ja4Y6DLzjaRZ8JG2NZMPkFg4XggU+o0kBb4pCiWm0Ar/ssoSY TmKulAyf6b5joeosKO3Co/cMGvF4vD9urSS1c0sOHhynW+qHsR2Sk+iYHtg60smHyZ55 M7cw== X-Gm-Message-State: AOUpUlH8lpyuCNJVbbs0c82KI9be8IYz2zyCmLnAVbx1FJ/wACqeh22b ANXYCMqcnkg8WJNRBPOy5jGfhg== 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=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: [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 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 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(-) -- 2.7.4