staging: vme: use image mutex for ioctl()
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>
Thu, 26 Feb 2015 15:53:09 +0000 (18:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 01:03:22 +0000 (17:03 -0800)
commit0cd189a42da07c89c809debc1f6a75f5ec0f5c43
treeb4a47d098d8d8afb60324548e62132f8e6b84320
parentad22d55c4b304a163c7372c00768f50adaecc686
staging: vme: use image mutex for ioctl()

This implements more granular locking in vme_user_ioctl() by using separate
locks for each devfs device.

This also provides a synchronization between vme_user_read(), vme_user_write()
and vme_user_ioctl().

Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Cc: Martyn Welch <martyn.welch@ge.com>
Cc: Igor Alekseev <igor.alekseev@itep.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_user.c