Re: [PATCH 4/4] change thaw_super() to re-acquire s_writers.lock_map

2015-07-21 Thread Jan Kara
On Mon 20-07-15 19:01:09, Oleg Nesterov wrote: > Change thaw_super() to re-acquire the "write" locks we are going to > release. This way s_op->unfreeze_fs(sb) is called with these locks > held as it seen by lockdep, and this matches the reality. This adds > another trivial helper, sb_freeze_acquire

[PATCH 4/4] change thaw_super() to re-acquire s_writers.lock_map

2015-07-20 Thread Oleg Nesterov
Change thaw_super() to re-acquire the "write" locks we are going to release. This way s_op->unfreeze_fs(sb) is called with these locks held as it seen by lockdep, and this matches the reality. This adds another trivial helper, sb_freeze_acquire(). Signed-off-by: Oleg Nesterov --- fs/super.c |