+ ima_process_keys = true;+
+ INIT_LIST_HEAD(&temp_ima_keys);
+
+ mutex_lock(&ima_keys_mutex);
+
+ list_for_each_entry_safe(entry, tmp, &ima_keys, list)
+ list_move_tail(&entry->list, &temp_ima_keys);
+
+ mutex_unlock(&ima_keys_mutex);
The v1 comment, which explained the need for using a temporary
keyring, is an example of an informative comment. ÂIf you don't
object, instead of re-posting this patch, I can insert it.
Mimi