Whamcloud - gitweb
LU-6215 osc: use list_for_each_entry_safe() when delete items 56/13956/3
authorAndreas Dilger <andreas.dilger@intel.com>
Tue, 3 Mar 2015 20:22:51 +0000 (13:22 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 8 Mar 2015 11:42:48 +0000 (11:42 +0000)
commiteaba382df06cd6f570b16c5f759f612b057e5324
treea8a8171d895d9651e2992a499ab3e83cc0455582
parentc06faad10dc402499e324d2c866fa43ff214f81d
LU-6215 osc: use list_for_each_entry_safe() when delete items

Since we will remove items off the list using list_del_init() we need
to use a safe version of the list_for_each_entry() macro aptly named
list_for_each_entry_safe().

Linux-commit: f13ab92effb94c8fc5eade75f6f246facd7ef5be

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I6ec6d8073da6e0aa45e9d8a6ee7cde84ed9cab07
Reviewed-on: http://review.whamcloud.com/13956
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osc/osc_cache.c