aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv (follow)
AgeCommit message (Collapse)AuthorFilesLines
2010-11-16SCSI host lock push-downJeff Garzik1-3/+4
Move the mid-layer's ->queuecommand() invocation from being locked with the host lock to being unlocked to facilitate speeding up the critical path for drivers who don't need this lock taken anyway. The patch below presents a simple SCSI host lock push-down as an equivalent transformation. No locking or other behavior should change with this patch. All existing bugs and locking orders are preserved. Additionally, add one parameter to queuecommand, struct Scsi_Host * and remove one parameter from queuecommand, void (*done)(struct scsi_cmnd *) Scsi_Host* is a convenient pointer that most host drivers need anyway, and 'done' is redundant to struct scsi_cmnd->scsi_done. Minimal code disturbance was attempted with this change. Most drivers needed only two one-line modifications for their host lock push-down. Signed-off-by: Jeff Garzik <jgarzik@redhat.com> Acked-by: James Bottomley <James.Bottomley@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-09drivers/staging: delete double assignmentJulia Lawall1-3/+0
Delete successive assignments to the same location. In three of the cases, the two assignments are identical. In the case of the file rt2860/common/cmm_aes.c, the assigned variable i is never used, so both assignments are dropped. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression i; @@ *i = ...; i = ...; // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-28Merge 'staging-next' to Linus's treeGreg Kroah-Hartman21-1106/+843
This merges the staging-next tree to Linus's tree and resolves some conflicts that were present due to changes in other trees that were affected by files here. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: remove struct vmbus_channel_interfaceGreg Kroah-Hartman8-72/+1
Now that no one uses this structure, remove it, and channel_interface.c (which is now empty) and the function, vmbus_get_interface() which is not needed anymore either. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: remove Open from struct vmbus_channel_interfaceGreg Kroah-Hartman2-17/+0
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: storvsc: call vmbus_open directlyGreg Kroah-Hartman1-7/+5
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: netvsc: call vmbus_open directlyGreg Kroah-Hartman1-6/+3
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: channel: export vmbus_open to modulesGreg Kroah-Hartman1-0/+1
Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: remove Close from struct vmbus_channel_interfaceGreg Kroah-Hartman2-8/+0
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: netvsc: call vmbus_close directlyGreg Kroah-Hartman1-4/+4
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: storvsc: call vmbus_close directlyGreg Kroah-Hartman1-1/+1
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: channel: export vmbus_close to modulesGreg Kroah-Hartman1-0/+1
Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: remove SendPacket from struct vmbus_channel_interfaceGreg Kroah-Hartman2-12/+0
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: storvsc: call vmbus_sendpacket directlyGreg Kroah-Hartman1-36/+30
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: netvsc: call vmbus_sendpacket directlyGreg Kroah-Hartman1-44/+35
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: remove SendPacketPageBuffer from struct vmbus_channel_interfaceGreg Kroah-Hartman2-16/+0
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: netvsc: call vmbus_sendpacket_pagebuffer directlyGreg Kroah-Hartman1-6/+6
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: channel: export vmbus_sendpacket_pagebuffer to modulesGreg Kroah-Hartman1-0/+1
Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: remove SendPacketMultiPageBuffer from struct vmbus_channel_interfaceGreg Kroah-Hartman2-16/+0
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: storvsc: call vmbus_sendpacket_multipagebuffer directlyGreg Kroah-Hartman1-2/+1
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: channel: export vmbus_sendpacket_multipagebuffer to modulesGreg Kroah-Hartman1-1/+1
Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: remove RecvPacket from struct vmbus_channel_interfaceGreg Kroah-Hartman2-12/+0
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: storvsc: call vmbus_recvpacket directlyGreg Kroah-Hartman1-4/+4
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: remove RecvPacketRaw from struct vmbus_channel_interfaceGreg Kroah-Hartman2-12/+0
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: netvsc: call vmbus_receivepacket_raw directlyGreg Kroah-Hartman1-3/+2
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: channel: export vmbus_receivepacket_raw to modulesGreg Kroah-Hartman1-0/+1
Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: rename context to channel in struct hv_deviceGreg Kroah-Hartman6-21/+21
As it really is a channel, not a "context" name it so. This also entailed making a few more functions typesafe as they were sending a struct vmbus_channel pointer as a void pointer. There are still a few more that need to be converted (the osd callbacks are one), but this is good for now. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: make *context a real pointer in struct hv_deviceGreg Kroah-Hartman1-1/+1
This is really the struct vmbus_channel for the device, not a void pointer, so use the real structure to ensure type safety everywhere. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: remove EstablishGpadl from struct vmbus_channel_interfaceGreg Kroah-Hartman2-11/+0
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: netvsc: call vmbus_establish_gpadl directlyGreg Kroah-Hartman1-8/+6
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: channel: export vmbus_establish_gpadl to modulesGreg Kroah-Hartman1-0/+1
Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: remove TeardownGpadl from struct vmbus_channel_interfaceGreg Kroah-Hartman2-10/+0
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: netvsc: call vmbus_teardown_gpadl directlyGreg Kroah-Hartman1-5/+5
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-21Staging: hv: channel: export vmbus_teardown_gpadl to modulesGreg Kroah-Hartman1-0/+1
Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-20Staging: hv: make get_channel_info staticGreg Kroah-Hartman4-77/+42
This is done by moving it to the only .c file it is used in. This also allowed us to delete the channel_interface.h file, as it's no longer needed. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-20Staging: hv: vmbus_drv: remove vmbus_child_device_get_infoGreg Kroah-Hartman1-14/+1
Just make the call to get_channel_info() directly. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-20Staging: hv: remove GetChannelInfo from struct vmbus_driverGreg Kroah-Hartman3-7/+2
It was only set to one value, so just make the call to get_channel_info() directly. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-20Staging: hv: remove GetInfo pointer from struct vmbus_channel_interfaceGreg Kroah-Hartman2-3/+0
It's only set by one thing, and never called. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-20Staging: hv: remove VmbusGetChannelInfoGreg Kroah-Hartman1-10/+1
It's not needed, make the function pointer point to get_channel_info() instead. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-20Staging: hv: make alloc_channel staticGreg Kroah-Hartman2-3/+1
It's only used in one file, and is a pretty generic name. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-15staging: hv: Convert camel cased functions in channel_mgmt.c to lower caseHaiyang Zhang4-53/+55
Convert camel cased functions in channel_mgmt.c to lower case Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-15staging: hv: Convert camel cased local variable names in channel_mgmt.c to lower caseHaiyang Zhang1-125/+133
Convert camel cased local variable names in channel_mgmt.c to lower case Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-15staging: hv: Convert camel cased parameter in channel_interface.h to lower caseHaiyang Zhang1-2/+2
Convert camel cased parameter in channel_interface.h to lower case Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-15staging: hv: Convert camel cased function names in channel_interface.c to lower casesHaiyang Zhang3-22/+22
Convert camel cased function names in channel_interface.c to lower cases Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-15staging: hv: Convert camel cased local variables in channel_interface.c to lower casesHaiyang Zhang1-62/+64
Convert camel cased local variables in channel_interface.c to lower cases Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-12staging: hv: Doubled ringbuffer size for Hyper-v network driverHank Janssen1-1/+1
Double the default network ringsize buffer for Hyper-V network driver. In very heavily loaded systems the there is a chance you run out of ringbuffer space and error out. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-08Staging: hv: Makefile: replace the use of <module>-objs with <module>-yTracey Dent1-4/+4
Changed <module>-objs to <module>-y in Makefile. Signed-off-by: Tracey Dent <tdent48227@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-07staging: hv: Rename camel cased functions in channel.c to lowercaseHaiyang Zhang6-120/+120
Rename camel cased functions in channel.c to lowercase Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-05staging: hv: Remove camel case variables in channel.cHaiyang Zhang1-380/+387
Rename camel case variables in channel.c and changed them to lowercase. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-05block: autoconvert trivial BKL users to private mutexArnd Bergmann1-5/+6
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>