Skip to contentSkip to conversation

raid5: update comment in release_stripe_list

PATCH New [email protected] 1 participant 1 message Jan 9, 2020 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 raid5: update comment in release_stripe_list

From: Guoqing Jiang <[email protected]>

After commit cf170f3fa451 ("raid5: avoid release list until last reference of the stripe"), we only set STRIPE_ON_RELEASE_LIST bit when sh->count is 1.

And no need to mention STRIPE_ON_UNPLUG_LIST here since the related comment is already in raid5_unplug.

---
 drivers/md/raid5.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/md/raid5.c +1 -2
index 7f8504525435..6a8b5112afa9 100644
@@ -368,8 +368,7 @@ static int release_stripe_list(struct r5conf *conf,
 		clear_bit(STRIPE_ON_RELEASE_LIST, &sh->state);
 		/*
 		 * Don't worry the bit is set here, because if the bit is set
-		 * again, the count is always > 1. This is true for
-		 * STRIPE_ON_UNPLUG_LIST bit too.
+		 * again, the count is always 1.
 		 */
 		hash = sh->hash_lock_index;
 		__release_stripe(conf, sh, &temp_inactive_list[hash]);
Signature · 1 line
2.17.1