Hi. I have a question on lock ordering while I read ReiserFS code in Linux 2.6.30.4. At write_ordered_buffers() function in reiserfs/journal.c, What is the lock ordering between spin_lock(lock) and lock_buffer(bh)? It seems that the lock ordering between spin_lock(lock) and lock_buffer(bh) is inconsistent. At line 858, the lock ordering is spin_lock(lock) → lock_buffer(bh). However, at line 881, lock_buffer(bh) → spin_lock(lock) since add_to_chunk() releases and re-takes spin_lock(lock). Is it necessary that the ordering between two locks is consistent? Sincerely Shin Hong -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html