Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Chaitanya Kulkarni <chaitanyak@nvidia.com>
To: Keith Busch <kbusch@meta.com>,
	"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-kselftest@vger.kernel.org"
	<linux-kselftest@vger.kernel.org>
Cc: "hch@lst.de" <hch@lst.de>, "sagi@grimberg.me" <sagi@grimberg.me>,
	"paulmck@kernel.org" <paulmck@kernel.org>,
	"davidgow@google.com" <davidgow@google.com>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
	"venkat88@linux.vnet.ibm.com" <venkat88@linux.vnet.ibm.com>,
	Keith Busch <kbusch@kernel.org>
Subject: Re: [PATCH 1/2] list: introduce a new cutting helper
Date: Wed, 12 Jun 2024 17:19:25 +0000	[thread overview]
Message-ID: <8c0ce60e-769f-4afe-a45a-de48019e3c6b@nvidia.com> (raw)
In-Reply-To: <20240612155135.3060667-1-kbusch@meta.com>

On 6/12/24 08:51, Keith Busch wrote:
> From: Keith Busch <kbusch@kernel.org>
>
> Provide a helper to remove elements from a list to the end, and place
> those elements in a new list.
>
> Signed-off-by: Keith Busch <kbusch@kernel.org>
> ---

Looks good.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>

-ck

I did quick run before the review if anybody cares :-

           head     entry                      list

node [3 | | 2]    [1 | | 3]     [2 | | 1]    [X | | X]
addr 1             2            3            4

+    list->next = entry;
+    list->prev = head->prev;
node                                         [3 | | 2] 
addr                                         4

+ head->prev = entry->prev;
node  [1 | | 2]
addr  1
+ entry->prev->next = head; node [1 | | 1]
addr 1

+ entry->prev = list; node               [4 | | 3]
addr                2

+    list->prev->next = list;
node                          [2 | | 4] addr                          3

reordering with list at front with head  :-
      head
node [1 | | 1]
addr
      list
node [3 | | 2] [4 | | 3] [2 | | 4]
addr  4         2         3



  parent reply	other threads:[~2024-06-12 17:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-12 15:51 [PATCH 1/2] list: introduce a new cutting helper Keith Busch
2024-06-12 15:51 ` [PATCH 2/2] nvme: fix namespace removal list Keith Busch
2024-06-12 17:20   ` Chaitanya Kulkarni
2024-06-12 17:24     ` Keith Busch
2024-06-12 17:19 ` Chaitanya Kulkarni [this message]
2024-06-13  4:56 ` [PATCH 1/2] list: introduce a new cutting helper Nilay Shroff
2024-06-13  8:10   ` Christoph Hellwig
2024-06-13 13:00     ` Keith Busch
2024-06-13 12:56   ` Keith Busch
2024-06-13 13:41     ` Nilay Shroff
2024-06-13 14:36       ` Keith Busch
2024-06-13 14:43         ` Paul E. McKenney
2024-06-13 14:47           ` Keith Busch
2024-06-13 15:15             ` Paul E. McKenney
2024-06-13 15:40               ` Keith Busch
2024-06-13 16:01                 ` Paul E. McKenney
2024-06-13 16:10                   ` Keith Busch
2024-06-13 17:39                     ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c0ce60e-769f-4afe-a45a-de48019e3c6b@nvidia.com \
    --to=chaitanyak@nvidia.com \
    --cc=akpm@linux-foundation.org \
    --cc=davidgow@google.com \
    --cc=hch@lst.de \
    --cc=kbusch@kernel.org \
    --cc=kbusch@meta.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=paulmck@kernel.org \
    --cc=sagi@grimberg.me \
    --cc=venkat88@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox