f2fs, lockdep: annotate mutex_lock_all()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 16 May 2013 18:03:12 +0000 (20:03 +0200)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 28 May 2013 06:03:02 +0000 (15:03 +0900)
commitbfe35965ecdc6038314d03456b94d9ba451c289d
tree94ca44f7f48113ed0d3701851c12c334a2bba38c
parentf356fe0cba0e3523e538987916bd2acedd4e6f41
f2fs, lockdep: annotate mutex_lock_all()

Majianpeng reported a lockdep splat for f2fs. It turns out mutex_lock_all()
acquires an array of locks (in global/local lock style).

Any such operation is always serialized using cp_mutex, therefore there is no
fs_lock[] lock-order issue; tell lockdep about this using the
mutex_lock_nest_lock() primitive.

Reported-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
This page took 0.070133 seconds and 5 git commands to generate.