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)
commitd2c9740b499f959ed513375b6e35c2ab161921cb
treea7add684a7cf1dcfd5ff8d3ce60e071fca55cf80
parent04fc8bbcf5eb25fa2aec290b302a9878dde20168
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