staging: comedi: change comedi_file_info_table_lock to mutex
authorIan Abbott <abbotti@mev.co.uk>
Thu, 4 Apr 2013 13:59:01 +0000 (14:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 21:33:19 +0000 (14:33 -0700)
commitda619f5575e111f176f9f6d888dbeaf3210ff1f2
tree74c64eab994f341196b4cece8c06b0c25a0b87ac
parentdb2e3487a5fa1f650680c672e0742d943039d2cc
staging: comedi: change comedi_file_info_table_lock to mutex

The spin-lock `comedi_file_info_table_lock` is used to protect against
simultaneous modification and access of `comedi_file_info_table[]`.
Change it from a spin-lock to a mutex as it is only used in contexts
where sleeping is allowed.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c