[RFC 11/12] lockdep: Call lock_acquire(release) when accessing PG_locked manually

2016-06-19 Thread Byungchul Park
The PG_locked bit can be updated through SetPageLocked() or ClearPageLocked(), not by lock_page() and unlock_page(). SetPageLockded() and ClearPageLocked() also have to be considered to get balanced between acquring and releasing the PG_locked lock. Signed-off-by: Byungchul Park

[RFC 11/12] lockdep: Call lock_acquire(release) when accessing PG_locked manually

2016-06-19 Thread Byungchul Park
The PG_locked bit can be updated through SetPageLocked() or ClearPageLocked(), not by lock_page() and unlock_page(). SetPageLockded() and ClearPageLocked() also have to be considered to get balanced between acquring and releasing the PG_locked lock. Signed-off-by: Byungchul Park ---