]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: use list_for_each_entry_safe to make it more consolidated and readable
authorDenis Cheng <crquan@gmail.com>
Wed, 17 Oct 2007 06:26:14 +0000 (23:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:47 +0000 (08:42 -0700)
commit88efd399364b00d90516569bfa63e24e07cedb23
treea7add684a7cf1dcfd5ff8d3ce60e071fca55cf80
parentd9b12ff172c72b90b8f8b8a8459a37ba364f0868
nbd: use list_for_each_entry_safe to make it more consolidated and readable

Thus the traverse of the loop may delete nodes, use the safe version.

Signed-off-by: Denis Cheng <crquan@gmail.com>
Cc: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/nbd.c