@@ -226,7 +226,7 @@ struct hash_lock {
226226 * A list containing the data VIOs sharing this lock, all having the same record name and
227227 * data block contents, linked by their hash_lock_node fields.
228228 */
229- struct list_head duplicate_ring ;
229+ struct list_head duplicate_vios ;
230230
231231 /* The number of data_vios sharing this lock instance */
232232 data_vio_count_t reference_count ;
@@ -343,7 +343,7 @@ static void return_hash_lock_to_pool(struct hash_zone *zone, struct hash_lock *l
343343{
344344 memset (lock , 0 , sizeof (* lock ));
345345 INIT_LIST_HEAD (& lock -> pool_node );
346- INIT_LIST_HEAD (& lock -> duplicate_ring );
346+ INIT_LIST_HEAD (& lock -> duplicate_vios );
347347 vdo_waitq_init (& lock -> waiters );
348348 list_add_tail (& lock -> pool_node , & zone -> lock_pool );
349349}
@@ -441,7 +441,7 @@ static void set_hash_lock(struct data_vio *data_vio, struct hash_lock *new_lock)
441441 VDO_ASSERT_LOG_ONLY (data_vio -> hash_zone != NULL ,
442442 "must have a hash zone when holding a hash lock" );
443443 VDO_ASSERT_LOG_ONLY (!list_empty (& data_vio -> hash_lock_entry ),
444- "must be on a hash lock ring when holding a hash lock" );
444+ "must be on a hash lock list when holding a hash lock" );
445445 VDO_ASSERT_LOG_ONLY (old_lock -> reference_count > 0 ,
446446 "hash lock reference must be counted" );
447447
@@ -464,10 +464,10 @@ static void set_hash_lock(struct data_vio *data_vio, struct hash_lock *new_lock)
464464
465465 if (new_lock != NULL ) {
466466 /*
467- * Keep all data_vios sharing the lock on a ring since they can complete in any
467+ * Keep all data_vios sharing the lock on a list since they can complete in any
468468 * order and we'll always need a pointer to one to compare data.
469469 */
470- list_move_tail (& data_vio -> hash_lock_entry , & new_lock -> duplicate_ring );
470+ list_move_tail (& data_vio -> hash_lock_entry , & new_lock -> duplicate_vios );
471471 new_lock -> reference_count += 1 ;
472472 if (new_lock -> max_references < new_lock -> reference_count )
473473 new_lock -> max_references = new_lock -> reference_count ;
@@ -1789,10 +1789,10 @@ static bool is_hash_collision(struct hash_lock *lock, struct data_vio *candidate
17891789 struct hash_zone * zone ;
17901790 bool collides ;
17911791
1792- if (list_empty (& lock -> duplicate_ring ))
1792+ if (list_empty (& lock -> duplicate_vios ))
17931793 return false;
17941794
1795- lock_holder = list_first_entry (& lock -> duplicate_ring , struct data_vio ,
1795+ lock_holder = list_first_entry (& lock -> duplicate_vios , struct data_vio ,
17961796 hash_lock_entry );
17971797 zone = candidate -> hash_zone ;
17981798 collides = !blocks_equal (lock_holder -> vio .data , candidate -> vio .data );
@@ -1815,7 +1815,7 @@ static inline int assert_hash_lock_preconditions(const struct data_vio *data_vio
18151815 return result ;
18161816
18171817 result = VDO_ASSERT (list_empty (& data_vio -> hash_lock_entry ),
1818- "must not already be a member of a hash lock ring " );
1818+ "must not already be a member of a hash lock list " );
18191819 if (result != VDO_SUCCESS )
18201820 return result ;
18211821
@@ -1942,8 +1942,8 @@ void vdo_release_hash_lock(struct data_vio *data_vio)
19421942 "returned hash lock must not be in use with state %s" ,
19431943 get_hash_lock_state_name (lock -> state ));
19441944 VDO_ASSERT_LOG_ONLY (list_empty (& lock -> pool_node ),
1945- "hash lock returned to zone must not be in a pool ring " );
1946- VDO_ASSERT_LOG_ONLY (list_empty (& lock -> duplicate_ring ),
1945+ "hash lock returned to zone must not be in a pool list " );
1946+ VDO_ASSERT_LOG_ONLY (list_empty (& lock -> duplicate_vios ),
19471947 "hash lock returned to zone must not reference DataVIOs" );
19481948
19491949 return_hash_lock_to_pool (zone , lock );
0 commit comments