]> git.proxmox.com Git - mirror_spl.git/commit
splat: Fix log buffer locking
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 2 Nov 2012 22:31:04 +0000 (15:31 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 6 Nov 2012 22:48:56 +0000 (14:48 -0800)
commit0e149d42049a0fc89c9ecdac428dbdfc6fd4e20a
tree788b47a7f5f4c24d49d33e83f65d1192f60fe12a
parentdf870a697fc8669d63534b27a108335269a7884f
splat: Fix log buffer locking

The Fedora 3.6 debug kernel identified the following issue where
we call copy_to_user() under a spin lock().  This used to be safe
in older kernels but no longer appears to be true so the spin
lock was changed to a mutex.  None of this code is performance
critical so allowing the process to sleep is harmless.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/splat/splat-ctl.c
module/splat/splat-internal.h