Skip to contentSkip to conversation

mm-compaction-add-missing-annotation-for-compact_lock_irqsave.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 8, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/compaction: add missing annotation for compact_lock_irqsave
has been removed from the -mm tree. Its filename was
mm-compaction-add-missing-annotation-for-compact_lock_irqsave.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jules Irenge <[email protected]>
Subject: mm/compaction: add missing annotation for compact_lock_irqsave

Sparse reports a warning at compact_lock_irqsave()

warning: context imbalance in compact_lock_irqsave() - wrong count at exit

The root cause is the missing annotation at compact_lock_irqsave() Add the missing __acquires(lock) annotation.

---

 mm/compaction.c |    1 +
 1 file changed, 1 insertion(+)
mm/compaction.c renamed from mm/compaction.c~mm-compaction-add-missing-annotation-for-compact_lock_irqsave +1 -0
@@ -481,6 +481,7 @@ static bool test_and_set_skip(struct com
  */
 static bool compact_lock_irqsave(spinlock_t *lock, unsigned long *flags,
 						struct compact_control *cc)
+	__acquires(lock)
 {
 	/* Track if the lock is contended in async mode */
 	if (cc->mode == MIGRATE_ASYNC && !cc->contended) {

_

Patches currently in -mm which might be from [email protected] are