Files
linux/drivers/block
Jakob Koschel ba22a58d05 drbd: remove usage of list iterator variable after loop
[ Upstream commit 901aeda62e ]

In preparation to limit the scope of a list iterator to the list
traversal loop, use a dedicated pointer to iterate through the list [1].

Since that variable should not be used past the loop iteration, a
separate variable is used to 'remember the current location within the
loop'.

To either continue iterating from that position or skip the iteration
(if the previous iteration was complete) list_prepare_entry() is used.

Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ [1]
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Link: https://lore.kernel.org/r/20220331220349.885126-1-jakobkoschel@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-29 09:26:15 +09:00
..
2016-06-27 12:26:08 -07:00
2011-08-08 11:40:15 +02:00
2023-06-29 09:26:11 +09:00
2016-03-15 15:59:47 -07:00
2016-06-27 12:26:08 -07:00
2013-11-08 09:10:30 -07:00
2009-03-26 21:15:27 +01:00
2023-05-15 09:19:21 +09:00
2016-08-07 14:41:02 -06:00