[PATCH] staging: lustre: remove IOC_LIBCFS_PING_TEST ioctl

2015-11-06 Thread y
From: James Simmons The ioctl IOC_LIBCFS_PING_TEST has not been used in ages. The recent nidstring changes which moved all the nidstring operations from libcfs to the LNet layer but this ioctl code was still using an nidstring operation that was causing an circular dependency loop between libcfs

Re: [PATCH 3/3] tools: hv: Check return value of poll call

2013-06-27 Thread Santosh Y
On Thu, Jun 27, 2013 at 5:22 PM, Tomas Hozza wrote: > Check return value of poll call and if it fails print error to the > system log. If errno is EINVAL then exit with non-zero value otherwise > continue the while loop and call poll again. > > Signed-off-by: Tomas Hozza > --- > tools/hv/hv_vss_

Re: leaking path in android binder: set_nice

2018-09-25 Thread Theodore Y. Ts'o
On Tue, Sep 25, 2018 at 01:52:57PM -0400, Stephen Smalley wrote: > On 09/25/2018 01:27 PM, Tong Zhang wrote: > > Kernel Version: 4.18.5 > > > > Problem Description: > > > > When setting nice value, it is checked by LSM function > > security_task_setnice(). > > see kernel/sched/core.c:3972 SYSCAL

Re: [PATCH] erofs: move erofs out of staging

2019-08-18 Thread Theodore Y. Ts'o
On Sun, Aug 18, 2019 at 11:21:13AM +0200, Richard Weinberger wrote: > > Not to say that erofs shouldn't be worked on to fix these kinds of > > issues, just that it's not an unheard of thing to trust the disk image. > > Especially for the normal usage model of erofs, where the whole disk > > image i

Re: [PATCH] erofs: move erofs out of staging

2019-08-18 Thread Theodore Y. Ts'o
On Sun, Aug 18, 2019 at 08:58:12AM -0700, Christoph Hellwig wrote: > On Sun, Aug 18, 2019 at 11:11:54AM -0400, Theodore Y. Ts'o wrote: > > Note that of the mainstream file systems, ext4 and xfs don't guarantee > > that it's safe to blindly take maliciously provided f

Re: [PATCH] erofs: move erofs out of staging

2019-08-18 Thread Theodore Y. Ts'o
On Sun, Aug 18, 2019 at 07:06:40PM +0200, Richard Weinberger wrote: > > So holding a file system like EROFS to a higher standard than say, > > ext4, xfs, or btrfs hardly seems fair. > > Nobody claimed that. Pointing out that erofs has issues in this area when Gao Xiang is asking if erofs can be m

Re: [PATCH] erofs: move erofs out of staging

2019-08-20 Thread Theodore Y. Ts'o
On Tue, Aug 20, 2019 at 10:24:11AM +0800, Chao Yu wrote: > Out of curiosity, it looks like every mainstream filesystem has its own > fuzz/injection tool in their tool-set, if it's really such a generic > requirement, why shouldn't there be a common tool to handle that, let > specified > filesystem

Re: [PATCH] erofs: move erofs out of staging

2019-08-20 Thread Theodore Y. Ts'o
On Wed, Aug 21, 2019 at 12:35:08AM +0800, Gao Xiang wrote: > > For EROFS, it's a special case since it is a RO fs, and erofs mkfs > will generate reproducable images (which means, for one dir trees, > it only generates exact one result except for build time). Agreed, and given that, doing the fuz

Re: [RFC] errno.h: Provide EFSCORRUPTED for everybody

2019-10-31 Thread Theodore Y. Ts'o
On Wed, Oct 30, 2019 at 09:07:33PM -0400, Valdis Kletnieks wrote: > Three questions: (a) ACK/NAK on this patch, (b) should it be all in one > patch, or one to add to errno.h and 6 patches for 6 filesystems?), and > (c) if one patch, who gets to shepherd it through? Acked-by: Theodore Ts'o ___

[PATCH 0/3] Drivers: hv: hv_balloon

2014-12-02 Thread K. Y. Srinivasan
Some bug fixes for the balloon driver. K. Y. Srinivasan (3): Drivers: hv: hv_balloon: Make adjustments in computing the floor Drivers: hv: hv_balloon: Fix a locking bug in the balloon driver Drivers: hv: hv_balloon: Don't post pressure status from interrupt context drive

[PATCH 1/3] Drivers: hv: hv_balloon: Make adjustments in computing the floor

2014-12-02 Thread K. Y. Srinivasan
Make adjustments in computing the balloon floor. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index b958ded..9cbbb83 100644 --- a/drivers/hv

[PATCH 2/3] Drivers: hv: hv_balloon: Fix a locking bug in the balloon driver

2014-12-02 Thread K. Y. Srinivasan
are different from what Windows expects. The state to manage the onlining of pages needs to be correctly protected. Fix this bug. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 69 +++--- 1 files changed, 64 insertions(+), 5 deletions

[PATCH 3/3] Drivers: hv: hv_balloon: Don't post pressure status from interrupt context

2014-12-02 Thread K. Y. Srinivasan
Wheeler reported: http://lkml.iu.edu/hypermail/linux/kernel/1411.1/00075.html Signed-off-by: K. Y. Srinivasan Reported-by: Sitsofe Wheeler --- drivers/hv/hv_balloon.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c

[PATCH 1/1] X86: Mark the Hyper-V clocksource as being continuous

2014-12-02 Thread K. Y. Srinivasan
The clocksource based on Hyper-V per-partition reference count MSR is continuous. Mark it accordingly. Signed-off-by: K. Y. Srinivasan cc: sta...@vger.kernel.org --- arch/x86/kernel/cpu/mshyperv.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/cpu

[PATCH V2 0/3] Drivers: hv: hv_balloon

2014-12-04 Thread K. Y. Srinivasan
Some bug fixes for the balloon driver. In this version, based on Dan Carpenter's comment, I have added some additional information to the change log. K. Y. Srinivasan (3): Drivers: hv: hv_balloon: Make adjustments in computing the floor Drivers: hv: hv_balloon: Fix a locking bug i

[PATCH V2 1/3] Drivers: hv: hv_balloon: Make adjustments in computing the floor

2014-12-04 Thread K. Y. Srinivasan
state. This patch fixes the issue by raising the floor. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index b958ded..9cbbb83 100644 --- a/drivers/hv

[PATCH V2 2/3] Drivers: hv: hv_balloon: Fix a locking bug in the balloon driver

2014-12-04 Thread K. Y. Srinivasan
are different from what Windows expects. The state to manage the onlining of pages needs to be correctly protected. Fix this bug. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 69 +++--- 1 files changed, 64 insertions(+), 5 deletions

[PATCH V2 3/3] Drivers: hv: hv_balloon: Don't post pressure status from interrupt context

2014-12-04 Thread K. Y. Srinivasan
Wheeler reported: http://lkml.iu.edu/hypermail/linux/kernel/1411.1/00075.html Signed-off-by: K. Y. Srinivasan Reported-by: Sitsofe Wheeler --- drivers/hv/hv_balloon.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c

[PATCH 1/1] Drivers: hv: vmbus: Implement a clockevent device

2014-12-04 Thread K. Y. Srinivasan
Signed-off-by: K. Y. Srinivasan --- arch/x86/include/uapi/asm/hyperv.h | 11 + drivers/hv/hv.c| 78 drivers/hv/hyperv_vmbus.h | 21 ++ drivers/hv/vmbus_drv.c | 40 +- 4 files

[PATCH V2 1/1] Drivers: hv: vmbus: Implement a clockevent device

2014-12-04 Thread K. Y. Srinivasan
Implement a clockevent device based on the timer support available on Hyper-V. Signed-off-by: K. Y. Srinivasan --- arch/x86/include/uapi/asm/hyperv.h | 11 + drivers/hv/hv.c| 78 drivers/hv/hyperv_vmbus.h | 21

[PATCH V3 1/1] Drivers: hv: vmbus: Implement a clockevent device

2014-12-05 Thread K. Y. Srinivasan
Implement a clockevent device based on the timer support available on Hyper-V. In This version of the patch I have addressed Jason's review comments. Signed-off-by: K. Y. Srinivasan Reviewed-by: Jason Wang --- arch/x86/include/uapi/asm/hyperv.h | 11 + drivers/hv

[PATCH 0/2] Drivers: hv: hv_balloon: Fix a deadlock in the hot-add path.

2014-12-05 Thread K. Y. Srinivasan
Fix a deadlock in the hot-add path in the Hyper-V balloon driver. K. Y. Srinivasan (2): Drivers: base: core: Export functions to lock/unlock device hotplug lock Drivers: hv: balloon: Fix the deadlock issue in the memory hot-add code drivers/base/core.c |2 ++ drivers/hv

[PATCH 2/2] Drivers: hv: balloon: Fix the deadlock issue in the memory hot-add code

2014-12-05 Thread K. Y. Srinivasan
er is just doing this wrong." This patch is based on the suggestion from Yasuaki Ishimatsu Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index afdb0d

[PATCH 1/2] Drivers: base: core: Export functions to lock/unlock device hotplug lock

2014-12-05 Thread K. Y. Srinivasan
-off-by: K. Y. Srinivasan --- drivers/base/core.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 97e2baf..b3073af 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -55,11 +55,13 @@ void lock_device_hotplug(void

[PATCH 1/1] Drivers: hv: vmbus: Implement a clockevent device

2014-12-05 Thread K. Y. Srinivasan
Implement a clockevent device based on the timer support available on Hyper-V. In this version of the patch I have addressed Jason's review comments. Signed-off-by: K. Y. Srinivasan Reviewed-by: Jason Wang --- arch/x86/include/uapi/asm/hyperv.h | 11 + drivers/hv

[PATCH V4 1/1] Drivers: hv: vmbus: Implement a clockevent device

2014-12-06 Thread K. Y. Srinivasan
Implement a clockevent device based on the timer support available on Hyper-V. In this version of the patch I have addressed Jason's review comments. Signed-off-by: K. Y. Srinivasan Reviewed-by: Jason Wang --- arch/x86/include/uapi/asm/hyperv.h | 11 + drivers/hv

[PATCH 1/1] Drivers: hv: vmbus: Fix a bug in vmbus_establish_gpadl()

2014-12-10 Thread K. Y. Srinivasan
Fix a bug in vmbus_establish_gpadl(). I would like to thank Michael Brown for seeing this bug. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 433f72a..c76ffbe

[PATCH V2 1/1] Drivers: hv: vmbus: Fix a bug in vmbus_establish_gpadl()

2014-12-10 Thread K. Y. Srinivasan
Fix a bug in vmbus_establish_gpadl(). I would like to thank Michael Brown for seeing this bug. In this version, I have added the Reported-by tag. Signed-off-by: K. Y. Srinivasan Reported-by: Michael Brown --- drivers/hv/channel.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

[PATCH V3 1/1] Drivers: hv: vmbus: Fix a bug in vmbus_establish_gpadl()

2014-12-10 Thread K. Y. Srinivasan
Correctly compute the local (gpadl) handle. I would like to thank Michael Brown for seeing this bug. Signed-off-by: K. Y. Srinivasan Reported-by: Michael Brown --- Changes in V2: Added the Reported-by tag. Changes in V3: Cleaned up the commit log. drivers/hv/channel.c |4 ++-- 1 files

[PATCH 1/1] Drivers: hv: vmbus: Use get_cpu() to get the current CPU

2014-12-14 Thread K. Y. Srinivasan
Replace calls for smp_processor_id() to get_cpu() to get the CPU ID of the current CPU. In these instances, there is no correctness issue with regards to preemption, we just need the current CPU ID. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |4 +++- drivers/hv

[PATCH 1/1] Drivers: hv: vmbus: Support a vmbus API for efficiently sending page arrays

2014-12-15 Thread K. Y. Srinivasan
-by: K. Y. Srinivasan --- drivers/hv/channel.c | 44 include/linux/hyperv.h | 31 +++ 2 files changed, 75 insertions(+), 0 deletions(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index c76ffbe..18c4f23

[PATCH 0/4] Drivers: scsi: storvsc: Fix miscellaneous issues

2014-12-16 Thread K. Y. Srinivasan
The first two patches in this series are a resend; these were submitted some months ago and as far as I know, there were no outstanding issues. Win8 and win8 r2 hosts do support SPC-3 features but claim SPC-2 compliance. This issue is fixed here as well. K. Y. Srinivasan (4): Drivers: scsi

[PATCH 3/4] Drivers: scsi: storvsc: Fix a bug in storvsc limits

2014-12-16 Thread K. Y. Srinivasan
Commit 4cd83ecdac20d30725b4f96e5d7814a1e290bc7e changed the limits to reflect the values on the host. It turns out that WS2008R2 cannot correctly handle these new limits. Fix this bug by setting the limits based on the host. Signed-off-by: K. Y. Srinivasan --- drivers/scsi/storvsc_drv.c | 15

[PATCH 1/4] Drivers: scsi: storvsc: In responce to a scan event, scan the host

2014-12-16 Thread K. Y. Srinivasan
The virtual HBA that storvsc implements can support multiple channels and targets. So, scan the host when the host notifies that a scan is needed. Signed-off-by: K. Y. Srinivasan --- drivers/scsi/storvsc_drv.c | 19 +++ 1 files changed, 7 insertions(+), 12 deletions(-) diff

[PATCH 4/4] Drivers: scsi: storvsc: Force SPC-3 compliance on win8 and win8 r2 hosts

2014-12-16 Thread K. Y. Srinivasan
claiming SPC-3 compliance on these hosts as well. This will enable TRIM support on these hosts. Suggested by: James Bottomley Signed-off-by: K. Y. Srinivasan --- drivers/scsi/storvsc_drv.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/scsi

[PATCH 2/4] Drivers: scsi: storvsc: Force discovery of LUNs that may have been removed.

2014-12-16 Thread K. Y. Srinivasan
for an I/O to remove the device, force the discovery of LUNs that may have been removed prior to discovering LUNs that may have been added. Signed-off-by: K. Y. Srinivasan --- drivers/scsi/storvsc_drv.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git

[PATCH 1/1] Drivers: hv: vmbus: Add device and vendor ID to vmbus devices

2014-12-17 Thread K. Y. Srinivasan
Add vendor and device ID attributes to vmbus devices. This would allow us to support vmbus based devices that can support guest RDMA. Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 20 include/linux/hyperv.h |2 ++ 2 files changed, 22 insertions(+), 0

Drivers/hv

2014-12-29 Thread K. Y. Srinivasan
Greg, Some time back I had sent a buch of patches for Hyper-V drivers. Are they still in the queue or should I resend them. Regards, K. Y ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo

[PATCH RESEND 0/5] Tools: hv: fix compiler warnings and do minor cleanup

2015-01-09 Thread K. Y. Srinivasan
When someone does 'make' in tools/hv/ issues appear: - hv_fcopy_daemon is not being built; - lots of compiler warnings. This is just a cleanup. Compile-tested by myself on top of linux-next/master. Piggyback this series and send "[PATCH 5/5] Tools: hv: do not add redundant '/' in hv_start_fcopy()

[PATCH RESEND 3/5] Tools: hv: address compiler warnings for hv_kvp_daemon.c

2015-01-09 Thread K. Y. Srinivasan
Kuznetsov Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_kvp_daemon.c | 25 - 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index 5a274ca..48a95f9 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv

[PATCH RESEND 1/5] Tools: hv: add mising fcopyd to the Makefile

2015-01-09 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov fcopyd in missing in the Makefile, add it there. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- tools/hv/Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hv/Makefile b/tools/hv/Makefile index bd22f78

[PATCH RESEND 4/5] Tools: hv: address compiler warnings for hv_fcopy_daemon.c

2015-01-09 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov This patch addresses two types of compiler warnings: ... warning: unused variable .fd. [-Wunused-variable] and ... warning: format .%s. expects argument of type .char *., but argument 5 has type .__u16 *. [-Wformat=] Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y

[PATCH RESEND 5/5] Tools: hv: do not add redundant '/' in hv_start_fcopy()

2015-01-09 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov We don't need to add additional '/' to smsg->path_name as snprintf("%s/%s") does the right thing. Without the patch we get doubled '//' in the log message. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- tools

[PATCH RESEND 2/5] Tools: hv: remove unused bytes_written from kvp_update_file()

2015-01-09 Thread K. Y. Srinivasan
: variable .bytes_written. set but not used [-Wunused-but-set-variable] Remove bytes_written completely. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_kvp_daemon.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/tools/hv

[PATCH RESEND 0/6] Drivers: hv: Miscellaneous fixes and enhancements

2015-01-09 Thread K. Y. Srinivasan
In addition to some miscellaneous bug fixes and enhancements implement a clockevent device based on the functionality supported by Hyper-V. K. Y. Srinivasan (6): Drivers: hv: hv_balloon: Make adjustments in computing the floor Drivers: hv: hv_balloon: Fix a locking bug in the balloon driver

[PATCH RESEND 3/6] Drivers: hv: hv_balloon: Don't post pressure status from interrupt context

2015-01-09 Thread K. Y. Srinivasan
Wheeler reported: http://lkml.iu.edu/hypermail/linux/kernel/1411.1/00075.html Signed-off-by: K. Y. Srinivasan Reported-by: Sitsofe Wheeler --- drivers/hv/hv_balloon.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c

[PATCH RESEND 6/6] Drivers: hv: vmbus: Support a vmbus API for efficiently sending page arrays

2015-01-09 Thread K. Y. Srinivasan
-by: K. Y. Srinivasan --- drivers/hv/channel.c | 44 include/linux/hyperv.h | 31 +++ 2 files changed, 75 insertions(+), 0 deletions(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index c76ffbe..18c4f23

[PATCH RESEND 1/6] Drivers: hv: hv_balloon: Make adjustments in computing the floor

2015-01-09 Thread K. Y. Srinivasan
state. This patch fixes the issue by raising the floor. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index b958ded..9cbbb83 100644 --- a/drivers/hv

[PATCH RESEND 2/6] Drivers: hv: hv_balloon: Fix a locking bug in the balloon driver

2015-01-09 Thread K. Y. Srinivasan
are different from what Windows expects. The state to manage the onlining of pages needs to be correctly protected. Fix this bug. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 68 +++--- 1 files changed, 63 insertions(+), 5 deletions

[PATCH RESEND 5/6] Drivers: hv: vmbus: Fix a bug in vmbus_establish_gpadl()

2015-01-09 Thread K. Y. Srinivasan
Correctly compute the local (gpadl) handle. I would like to thank Michael Brown for seeing this bug. Signed-off-by: K. Y. Srinivasan Reported-by: Michael Brown --- drivers/hv/channel.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hv/channel.c b/drivers

[PATCH RESEND 4/6] Drivers: hv: vmbus: Implement a clockevent device

2015-01-09 Thread K. Y. Srinivasan
Implement a clockevent device based on the timer support available on Hyper-V. In this version of the patch I have addressed Jason's review comments. Signed-off-by: K. Y. Srinivasan Reviewed-by: Jason Wang --- arch/x86/include/uapi/asm/hyperv.h | 11 + drivers/hv

[PATCH RESEND 1/1] X86: Mark the Hyper-V clocksource as being continuous

2015-01-12 Thread K. Y. Srinivasan
The Hyper-V clocksource is continuous; mark it accordingly. Signed-off-by: K. Y. Srinivasan Cc: stable --- arch/x86/kernel/cpu/mshyperv.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c index a450373

Re: [PATCH v3 23/24] erofs: introduce cached decompression

2019-07-22 Thread Theodore Y. Ts'o
On Mon, Jul 22, 2019 at 06:58:59PM +0800, Gao Xiang wrote: > > The number of individual Kconfig options is quite high, are you sure you > > need them to be split like that? > > You mean the above? these are 3 cache strategies, which impact the > runtime memory consumption and performance. I tend t

Re: [PATCH v3 23/24] erofs: introduce cached decompression

2019-07-22 Thread Theodore Y. Ts'o
On Mon, Jul 22, 2019 at 10:16:44PM +0800, Gao Xiang wrote: > OK, I will give a try. One point I think is how to deal with the case > if there is already cached information when remounting as well as you said. > > As the first step, maybe the mount option can be defined as > allowing/forbiding cachi

[PATCH 10/21] Drivers: hv: vss: switch to using the hvutil_device_state state machine

2015-04-11 Thread K. Y. Srinivasan
t treating all timeouts as such), add a protection against processing new VSS_OP_REGISTER messages while being in the middle of a transaction (HVUTIL_USERSPACE_REQ or HVUTIL_USERSPACE_RECV state). Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drive

[PATCH 21/21] Drivers: hv: utils: unify driver registration reporting

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Unify driver registration reporting and move it to debug level as normally daemons write to syslog themselves and these kernel messages are useless. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c|3

[PATCH 00/21] Drivers: hv: utils: re-implement the kernel/userspace communication layer

2015-04-11 Thread K. Y. Srinivasan
Changes in v3: - Removed RFC from subject, rebased on top of current char-misc-next tree. RFCv2: http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2015-March/066629.html Anatomy of the series: Patches 01 - 07 are cleanup with minor functional change. Patch 08 defines the state ma

[PATCH 04/21] Drivers: hv: fcopy: process deferred messages when we complete the transaction

2015-04-11 Thread K. Y. Srinivasan
processed. In FCOPY we support only the former. Add support for the later, use hv_poll_channel() to do the job. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions

[PATCH 20/21] Drivers: hv: fcopy: full handshake support

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Introduce FCOPY_VERSION_1 to support kernel replying to the negotiation message with its own version. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c | 16 +++- include/uapi/linux

[PATCH 02/21] Drivers: hv: kvp: reset kvp_context

2015-04-11 Thread K. Y. Srinivasan
(). This doesn't cause real issues as: 1) Host is supposed to serialize transactions as well 2) If no message is pending vmbus_recvpacket() will return 0 recvlen. This is just a cleanup. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_kvp.c |

[PATCH 01/21] Drivers: hv: util: move kvp/vss function declarations to hyperv_vmbus.h

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov These declarations are internal to hv_util module and hv_fcopy_* declarations already reside there. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_kvp.c |1 + drivers/hv/hv_snapshot.c |2 ++ drivers

[PATCH 03/21] Drivers: hv: kvp: move poll_channel() to hyperv_vmbus.h

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Move poll_channel() to hyperv_vmbus.h and make it inline and rename it to hv_poll_channel() so it can be reused in other hv_util modules. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_kvp.c | 17

[PATCH 18/21] Tools: hv: vss: use misc char device to communicate with kernel

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Use /dev/vmbus/hv_vss instead of netlink. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_vss_daemon.c | 139 - 1 files changed, 25 insertions(+), 114 deletions(-) diff

[PATCH 09/21] Drivers: hv: kvp: switch to using the hvutil_device_state state machine

2015-04-11 Thread K. Y. Srinivasan
t the userspace daemon has died (unless we start treating all timeouts as such). In case the daemon restarts we skip the negotiation procedure (so the daemon is supposed to has the same version). This behavior is unchanged from in_handshake approach. Signed-off-by: Vitaly Kuznetsov Tested-by: Al

[PATCH 07/21] Drivers: hv: fcopy: rename fcopy_work -> fcopy_timeout_work

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov 'fcopy_work' (and fcopy_work_func) is a misnomer as it sounds like we expect this useful work to happen and in reality it is just an emergency escape when timeout happens. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --

[PATCH 12/21] Drivers: hv: fcopy: set .owner reference for file operations

2015-04-11 Thread K. Y. Srinivasan
Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hv/hv_fcopy.c b/drivers/hv/hv_fcopy.c index a501301..d1475e6 100644 --- a/drivers/hv/hv_fcopy.c +++ b/drivers/hv/hv_fcopy.c @@ -360,12 +360,9

[PATCH 13/21] Drivers: hv: util: introduce hv_utils_transport abstraction

2015-04-11 Thread K. Y. Srinivasan
-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/Makefile |2 +- drivers/hv/hv_utils_transport.c | 276 +++ drivers/hv/hv_utils_transport.h | 51 +++ 3 files changed, 328 insertions(+), 1 deletions

[PATCH 14/21] Drivers: hv: vss: convert to hv_utils_transport

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Convert to hv_utils_transport to support both netlink and /dev/vmbus/hv_vss communication methods. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_snapshot.c | 52 +++-- 1

[PATCH 11/21] Drivers: hv: fcopy: switch to using the hvutil_device_state state machine

2015-04-11 Thread K. Y. Srinivasan
on driver unload In hv_fcopy_onchannelcallback() process ICMSGTYPE_NEGOTIATE messages even when the userspace daemon is disconnected, otherwise we can make the host think we don't support FCOPY and disable the service completely. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signe

[PATCH 17/21] Tools: hv: kvp: use misc char device to communicate with kernel

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Use /dev/vmbus/hv_kvp instead of netlink. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_kvp_daemon.c | 166 +- 1 files changed, 31 insertions(+), 135 deletions(-) diff

[PATCH 16/21] Drivers: hv: kvp: convert to hv_utils_transport

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Convert to hv_utils_transport to support both netlink and /dev/vmbus/hv_kvp communication methods. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_kvp.c | 91 +++--- 1

[PATCH 05/21] Drivers: hv: vss: process deferred messages when we complete the transaction

2015-04-11 Thread K. Y. Srinivasan
processed. In VSS we support only the former. Add support for the later, use hv_poll_channel() to do the job. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_snapshot.c | 14 +- 1 files changed, 9 insertions(+), 5 deletions

[PATCH 06/21] Drivers: hv: kvp: rename kvp_work -> kvp_timeout_work

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov 'kvp_work' (and kvp_work_func) is a misnomer as it sounds like we expect this useful work to happen and in reality it is just an emergency escape when timeout happens. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan ---

[PATCH 19/21] Drivers: hv: vss: full handshake support

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Introduce VSS_OP_REGISTER1 to support kernel replying to the negotiation message with its own version. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_snapshot.c| 49

[PATCH 08/21] Drivers: hv: util: introduce state machine for util drivers

2015-04-11 Thread K. Y. Srinivasan
this state in all 3 drivers. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hyperv_vmbus.h |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index 2f30456

[PATCH 15/21] Drivers: hv: fcopy: convert to hv_utils_transport

2015-04-11 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Unify the code with the recently introduced hv_utils_transport. Netlink communication is disabled for fcopy. Signed-off-by: Vitaly Kuznetsov Tested-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c | 194

[PATCH 4/5] drivers: hv: vmbus: Get rid of some unused definitions

2015-04-19 Thread K. Y. Srinivasan
Get rid of some unused definitions. Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h | 19 --- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 1744148..e29ccdd 100644 --- a/include/linux/hyperv.h

[PATCH 2/5] Drivers: hv: vmbus: unregister panic notifier on module unload

2015-04-19 Thread K. Y. Srinivasan
39.788877] [] ? atomic_notifier_chain_register+0x38/0x70 [ 39.788877] [] ? atomic_notifier_chain_register+0x17/0x70 [ 39.788877] [] hv_acpi_init+0x14f/0x1000 [hv_vmbus] [ 39.788877] [] do_one_initcall+0xd4/0x210 Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan ---

[PATCH 5/5] Drivers: hv: vmbus: Implement the protocol for tearing down vmbus state

2015-04-19 Thread K. Y. Srinivasan
Implement the protocol for tearing down the monitor state established with the host. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 25 + drivers/hv/connection.c |5 + drivers/hv/hyperv_vmbus.h |2 ++ include/linux/hyperv.h|1 + 4

[PATCH 3/5] hv: vmbus_free_channels(): remove the redundant free_channel()

2015-04-19 Thread K. Y. Srinivasan
nnel_removal(). This patch fixes a bug in the vmbus unload path. Thank Dan Carpenter for finding the issue! Signed-off-by: Dexuan Cui Reported-by: Dan Carpenter Cc: K. Y. Srinivasan Cc: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 11 --- 1 file

[PATCH 1/5] Drivers: hv: vmbus: introduce vmbus_acpi_remove

2015-04-19 Thread K. Y. Srinivasan
:[] [] __request_resource+0x2f/0x50 [ 38.166315] RSP: 0018:88003f60fb58 EFLAGS: 00010286 Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv

[PATCH 0/5] Drivers: hv: vmbus: Cleanup the vmbus unload path

2015-04-19 Thread K. Y. Srinivasan
. Y. Srinivasan (2): drivers: hv: vmbus: Get rid of some unused definitions Drivers: hv: vmbus: Implement the protocol for tearing down vmbus state Vitaly Kuznetsov (2): Drivers: hv: vmbus: introduce vmbus_acpi_remove Drivers: hv: vmbus: unregister panic notifier on module unload

[PATCH V2 0/5] Drivers: hv: vmbus: Cleanup the vmbus unload path

2015-04-22 Thread K. Y. Srinivasan
protocol for tearing down vmbus was modified based on feedback from Vitaly Kuznetsov. Dexuan Cui (1): hv: vmbus_free_channels(): remove the redundant free_channel() K. Y. Srinivasan (2): drivers: hv: vmbus: Get rid of some unused definitions Drivers: hv: vmbus: Implement the protocol for tearing

[PATCH V2 4/5] drivers: hv: vmbus: Get rid of some unused definitions

2015-04-22 Thread K. Y. Srinivasan
Get rid of some unused definitions. Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h | 19 --- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 1744148..e29ccdd 100644 --- a/include/linux/hyperv.h

[PATCH V2 2/5] Drivers: hv: vmbus: unregister panic notifier on module unload

2015-04-22 Thread K. Y. Srinivasan
39.788877] [] ? atomic_notifier_chain_register+0x38/0x70 [ 39.788877] [] ? atomic_notifier_chain_register+0x17/0x70 [ 39.788877] [] hv_acpi_init+0x14f/0x1000 [hv_vmbus] [ 39.788877] [] do_one_initcall+0xd4/0x210 Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan ---

[PATCH V2 5/5] Drivers: hv: vmbus: Implement the protocol for tearing down vmbus state

2015-04-22 Thread K. Y. Srinivasan
Implement the protocol for tearing down the monitor state established with the host. Signed-off-by: K. Y. Srinivasan Tested-by: Vitaly Kuznetsov --- Changes in V2: Call vmbus_disconnect earlier - Vitaly Kuznetsov drivers/hv/channel_mgmt.c | 25 + drivers/hv

[PATCH V2 1/5] Drivers: hv: vmbus: introduce vmbus_acpi_remove

2015-04-22 Thread K. Y. Srinivasan
:[] [] __request_resource+0x2f/0x50 [ 38.166315] RSP: 0018:88003f60fb58 EFLAGS: 00010286 Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv

[PATCH V2 3/5] hv: vmbus_free_channels(): remove the redundant free_channel()

2015-04-22 Thread K. Y. Srinivasan
nnel_removal(). This patch fixes a bug in the vmbus unload path. Thank Dan Carpenter for finding the issue! Signed-off-by: Dexuan Cui Reported-by: Dan Carpenter Cc: K. Y. Srinivasan Cc: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 11 --- 1 file

[PATCH 1/1] scsi: storvsc: Set the SRB flags correctly when no data transfer is needed

2015-04-24 Thread K. Y. Srinivasan
Set the SRB flags correctly when there is no data transfer. Cc: Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li --- drivers/scsi/storvsc_drv.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index d9dad90

[PATCH 1/1] scsi: storvsc: Set the SRB flags correctly when no data transfer is needed

2015-04-24 Thread K. Y. Srinivasan
Set the SRB flags correctly when there is no data transfer. Cc: Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li --- drivers/scsi/storvsc_drv.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index d9dad90

[PATCH net 1/1] hv_netvsc: Fix a bug in netvsc_start_xmit()

2015-04-27 Thread K. Y. Srinivasan
. Y. Srinivasan --- drivers/net/hyperv/netvsc_drv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index a3a9d38..7eb0251 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c

[PATCH V2 net 1/1] hv_netvsc: Fix a bug in netvsc_start_xmit()

2015-04-28 Thread K. Y. Srinivasan
it did not account for the case if the skb was cloned. Fix this bug. Signed-off-by: K. Y. Srinivasan --- V2: Used skb_cow_head() based on Dave Miller's feedback V2: Fixed up the commit log based on feedback from Sergei Shtylyov drivers/net/hyperv/hyperv_net.h |1 - dri

[PATCH net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-04-29 Thread K. Y. Srinivasan
Based on the information given to this driver (via the xmit_more skb flag), we can defer signaling the host if more packets are on the way. This will help make the host more efficient since it can potentially process a larger batch of packets. Implement this optimization. Signed-off-by: K. Y

[PATCH V2 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-04-30 Thread K. Y. Srinivasan
Based on the information given to this driver (via the xmit_more skb flag), we can defer signaling the host if more packets are on the way. This will help make the host more efficient since it can potentially process a larger batch of packets. Implement this optimization. Signed-off-by: K. Y

[PATCH V2 1/1] scsi: storvsc: Set the SRB flags correctly when no data transfer is needed

2015-05-01 Thread K. Y. Srinivasan
Set the SRB flags correctly when there is no data transfer. Without this change some IHV drivers will fail valid commands such as TEST_UNIT_READY. Cc: Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li --- V2: Added additional details to the commit log - Dan Carpenter drivers/scsi

[PATCH V3 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-05-06 Thread K. Y. Srinivasan
Based on the information given to this driver (via the xmit_more skb flag), we can defer signaling the host if more packets are on the way. This will help make the host more efficient since it can potentially process a larger batch of packets. Implement this optimization. Signed-off-by: K. Y

[PATCH V4 net-next 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-05-06 Thread K. Y. Srinivasan
Based on the information given to this driver (via the xmit_more skb flag), we can defer signaling the host if more packets are on the way. This will help make the host more efficient since it can potentially process a larger batch of packets. Implement this optimization. Signed-off-by: K. Y

[PATCH 7/7] Drivers: hv: vmbus: distribute subchannels among all vcpus

2015-05-06 Thread K. Y. Srinivasan
assigned to different vcpus. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 29 - 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 655c0a0

[PATCH 4/7] Drivers: hv: vmbus: briefly comment num_sc and next_oc

2015-05-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov <[mailto:vkuzn...@redhat.com]> next_oc and num_sc fields of struct vmbus_channel deserve a description. Move them closer to sc_list as these fields are related to it. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h

[PATCH 2/7] Drivers: hv: vmbus: kill tasklets on module unload

2015-05-06 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Explicitly kill tasklets we create on module unload. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c

  1   2   3   4   5   6   7   8   9   10   >