summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2015-08-21 20:42:55 +0300
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-10-06 21:25:26 +0300
commit95b19f684c61ffc9b039e02c5d1113c2d8cd7105 (patch)
tree5faf2eee589b2acb438a0881c2c3d80877f96bd5 /include/linux
parent07899a6e5f56136028c44a57ad0451e797365ac3 (diff)
downloadlinux-95b19f684c61ffc9b039e02c5d1113c2d8cd7105.tar.xz
locking/percpu-rwsem: Make percpu_free_rwsem() after kzalloc() safe
This is the temporary ugly hack which will be reverted later. We only need it to ensure that the next patch will not break "change sb_writers to use percpu_rw_semaphore" patches routed via the VFS tree. The alloc_super()->destroy_super() error path assumes that it is safe to call percpu_free_rwsem() after kzalloc() without percpu_init_rwsem(), so let's not disappoint it. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions