Details

[Home]

Issue of the Implementation # L0264

Brief

z3fold: spinlock left locked in page reclaim

Detailed Description

z3fold_reclaim_page() contains the only return that may leave the function with pool->lock spinlock held.

669 	spin_lock(&pool->lock);
670 	if (kref_put(&zhdr->refcount, release_z3fold_page)) {
671 		atomic64_dec(&pool->pages_nr);
672 		return 0;
673 	}
There should be spin_unlock(&pool->lock); just before return.

Component

linux-kernel 4.11-rc1

Accepted

https://lkml.org/lkml/2017/3/10/1475
commit

Status

Fixed in kernel 4.11-rc3

List of traces

Error trace 1

[Home]