[PATCH v2 1/4] lockdep: Apply crossrelease to PG_locked locks

2017-12-03 Thread Byungchul Park
Although lock_page() and its family can cause deadlock, lockdep have not worked with them, becasue unlock_page() might be called in a different context from the acquire context, which violated lockdep's assumption. Now CONFIG_LOCKDEP_CROSSRELEASE has been introduced, lockdep can work with page

[PATCH v2 1/4] lockdep: Apply crossrelease to PG_locked locks

2017-12-03 Thread Byungchul Park
Although lock_page() and its family can cause deadlock, lockdep have not worked with them, becasue unlock_page() might be called in a different context from the acquire context, which violated lockdep's assumption. Now CONFIG_LOCKDEP_CROSSRELEASE has been introduced, lockdep can work with page