kernel-fxtec-pro1x/drivers/staging/hv
Arnd Bergmann 2a48fc0ab2 block: autoconvert trivial BKL users to private mutex
The block device drivers have all gained new lock_kernel
calls from a recent pushdown, and some of the drivers
were already using the BKL before.

This turns the BKL into a set of per-driver mutexes.
Still need to check whether this is safe to do.

file=$1
name=$2
if grep -q lock_kernel ${file} ; then
    if grep -q 'include.*linux.mutex.h' ${file} ; then
            sed -i '/include.*<linux\/smp_lock.h>/d' ${file}
    else
            sed -i 's/include.*<linux\/smp_lock.h>.*$/include <linux\/mutex.h>/g' ${file}
    fi
    sed -i ${file} \
        -e "/^#include.*linux.mutex.h/,$ {
                1,/^\(static\|int\|long\)/ {
                     /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex);

} }"  \
    -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \
    -e '/[      ]*cycle_kernel_lock();/d'
else
    sed -i -e '/include.*\<smp_lock.h\>/d' ${file}  \
                -e '/cycle_kernel_lock()/d'
fi

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2010-10-05 15:01:10 +02:00
..
blkvsc.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
blkvsc_drv.c block: autoconvert trivial BKL users to private mutex 2010-10-05 15:01:10 +02:00
channel.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
channel.h
channel_interface.c Staging: hv: rename VmbusPrivate.h to vmbus_private.h 2010-05-11 11:36:17 -07:00
channel_interface.h Staging: hv: rename VmbusApi.h to vmbus_api.h 2010-05-11 11:36:17 -07:00
channel_mgmt.c Staging: Merge staging-next into Linus's tree 2010-08-05 14:18:03 -07:00
channel_mgmt.h Staging: hv: remove RING_BUFFER_INFO typedef 2010-07-27 11:43:11 -07:00
connection.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
hv.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
hv.h
hv_api.h
hv_timesource.c Staging: hyperv: add clocksource driver 2010-07-08 14:15:11 -07:00
hv_utils.c Staging: Merge staging-next into Linus's tree 2010-08-05 14:18:03 -07:00
Kconfig staging: hv: Fix Kconfig dependency of hv_blkvsc 2010-07-26 15:38:13 -07:00
logging.h Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
Makefile Staging: hyperv: add clocksource driver 2010-07-08 14:15:11 -07:00
netvsc.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
netvsc.h Staging: hv: rename VmbusPacketFormat.h to vmbus_packet_format.h 2010-05-11 11:36:18 -07:00
netvsc_api.h Staging: hv: rename VmbusApi.h to vmbus_api.h 2010-05-11 11:36:17 -07:00
netvsc_drv.c staging: hv: Fix missing functions for net_device_ops 2010-09-03 17:37:15 -07:00
osd.c
osd.h
ring_buffer.c staging: hv: Fixed the value of the 64bit-hole inside ring buffer 2010-09-03 17:37:15 -07:00
ring_buffer.h Staging: hv: remove RING_BUFFER typedef 2010-07-27 11:47:08 -07:00
rndis.h
rndis_filter.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
rndis_filter.h
storvsc.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
storvsc_api.h staging: hv: Increased storvsc ringbuffer and max_io_requests 2010-09-03 17:37:15 -07:00
storvsc_drv.c staging: hv: Fixed lockup problem with bounce_buffer scatter list 2010-09-03 17:37:15 -07:00
TODO
utils.h staging: hv: Added heartbeat functionality to hv_utils 2010-05-17 16:32:30 -07:00
version_info.h staging: hv: Added heartbeat functionality to hv_utils 2010-05-17 16:32:30 -07:00
vmbus.c Staging: hv: remove DPRINT_EXIT macro 2010-07-22 15:14:04 -07:00
vmbus.h staging: hv: Fix race condition on vmbus channel initialization 2010-06-30 08:18:14 -07:00
vmbus_api.h Staging: hv: rename VmbusApi.h to vmbus_api.h 2010-05-11 11:36:17 -07:00
vmbus_channel_interface.h Staging: hv: rename VmbusChannelInterface.h to vmbus_channel_interface.h 2010-05-11 11:36:17 -07:00
vmbus_drv.c Staging: Merge staging-next into Linus's tree 2010-08-05 14:18:03 -07:00
vmbus_packet_format.h Staging: hv: rename VmbusPacketFormat.h to vmbus_packet_format.h 2010-05-11 11:36:18 -07:00
vmbus_private.h Staging: hv: rename VmbusPrivate.h to vmbus_private.h 2010-05-11 11:36:17 -07:00
vstorage.h