Re: [PATCH v2 1/3] PCI/AER: Fix incorrect return from aer_hest_parse()

2013-06-04 Thread Chen Gong
On Tue, Jun 04, 2013 at 07:13:24AM -0600, Bjorn Helgaas wrote: > Date: Tue, 4 Jun 2013 07:13:24 -0600 > From: Bjorn Helgaas > To: Betty Dall > Cc: r...@sisk.pl, ying.hu...@intel.com, linux-a...@vger.kernel.org, > linux-kernel@vger.kernel.org, linux-...@vger.kernel.org, > gong.c...@linux.intel.c

[PATCH] ext4: Reduce object size when !CONFIG_PRINTK

2013-06-04 Thread Joe Perches
Reduce the object size ~10% could be useful for embedded systems. Add #ifdef CONFIG_PRINTK #else #endif blocks to hold formats and arguments, passing " " to functions when !CONFIG_PRINTK and still verifying format and arguments with no_printk. $ size fs/ext4/built-in.o* textdata bss

Re: [net-next rfc V2 7/8] macvtap: add TUNSETQUEUE ioctl

2013-06-04 Thread Jason Wang
On 06/04/2013 03:05 PM, Michael S. Tsirkin wrote: > On Tue, Jun 04, 2013 at 01:54:56PM +0800, Jason Wang wrote: >> On 06/03/2013 07:09 PM, Michael S. Tsirkin wrote: >>> On Mon, Jun 03, 2013 at 01:20:58PM +0800, Jason Wang wrote: On 06/02/2013 07:22 PM, Michael S. Tsirkin wrote: > On Fri, M

Re: [RFC v1] add new io-scheduler to use cgroup on high-speed device

2013-06-04 Thread Tejun Heo
(cc'ing Kent. Original posting at http://thread.gmane.org/gmane.linux.kernel/1502484 ) Hello, On Wed, Jun 05, 2013 at 10:09:31AM +0800, Robin Dong wrote: > We want to use blkio.cgroup on high-speed device (like fusionio) for our > mysql clusters. > After testing different io-scheduler, we foun

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-04 Thread anish singh
Hello Wim Van Sabroeck, Can I get your inputs on this? On Tue, Jun 4, 2013 at 8:39 AM, anish singh wrote: > On Tue, Jun 4, 2013 at 3:55 AM, Guenter Roeck wrote: >> On Mon, Jun 03, 2013 at 10:23:04PM +0530, anish singh wrote: >>> On Mon, Jun 3, 2013 at 8:57 PM, Guenter Roeck wrote: >>> > On Sun,

Re: [hv] BUG: kernel freezes after [ 13.356381] PCI: CLS 0 bytes, default 64

2013-06-04 Thread Fengguang Wu
On Tue, Jun 04, 2013 at 11:36:23PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Greg KH [mailto:g...@kroah.com] > > Sent: Tuesday, June 04, 2013 6:44 PM > > To: Fengguang Wu > > Cc: KY Srinivasan; de...@linuxdriverproject.org; Greg Kroah-Hartman; linux- > > ker...@vger

[PATCH -tip ] [BUGFIX] kprobes: Fix arch_prepare_kprobe to handle copy insn failures

2013-06-04 Thread Masami Hiramatsu
Fix arch_prepare_kprobe() to handle failures in copy instruction correctly. This fix is related to the previous fix: 8101376 which made __copy_instruction return an error result if failed, but caller site was not updated to handle it. Thus, this is the other half of the bugfix. This fix is also re

Re: [PATCH] ARM: samsung: avoid racy early printk at bootup

2013-06-04 Thread Olof Johansson
Hi, On Tue, Jun 04, 2013 at 06:58:59PM -0700, Doug Anderson wrote: > At boot, we've got a stack trace that looks something like this > (exynos5 as example) > * exynos5_map_io > * s3c_init_cpu > * exynos_init_io > * exynos5_dt_map_io > * paging_init > * setup_arch > > When paging_init() runs we'll

Re: [PATCH V4 22/30] thermal: exynos: Add support for exynos5440 TMU sensor.

2013-06-04 Thread amit daniel kachhap
Hi Eduardo, On Tue, Jun 4, 2013 at 6:25 PM, Eduardo Valentin wrote: > On 04-06-2013 00:44, amit daniel kachhap wrote: >> Hi Jonghwa, >> >> Sorry for the late reply as I was on leave. >> >> On Sat, May 18, 2013 at 10:53 AM, wrote: >>> On 2013년 05월 14일 18:58, Amit Daniel Kachhap wrote: >>> T

Re: [PATCH v2] include/linux/skbuff.h: using '(u16) ~0U' instead of '~0U'

2013-06-04 Thread Chen Gang
On 06/03/2013 08:47 PM, David Laight wrote: >>> +#define SKB_HEADER_UNSET_16((unsigned short) ~0U) >>> > > + >> > >> > The _16 part isn't really correct, the type could be changed >> > and then it would be wrong. >> > >> > I think I might have used SKB_HEADER_OFFSET. > I meant SKB_HEADER_

Re: [RFC v1] add new io-scheduler to use cgroup on high-speed device

2013-06-04 Thread sanbai
On 2013年06月05日 11:03, Tejun Heo wrote: (cc'ing Kent. Original posting at http://thread.gmane.org/gmane.linux.kernel/1502484 ) Hello, On Wed, Jun 05, 2013 at 10:09:31AM +0800, Robin Dong wrote: We want to use blkio.cgroup on high-speed device (like fusionio) for our mysql clusters. After te

[PATCH 1/2] list: add while_list_drain_entry

2013-06-04 Thread Jörn Engel
I have seen a lot of boilerplate code that either follows the pattern of while (!list_empty(head)) { pos = list_entry(head->next, struct foo, list); list_del(pos->list); ... } or some variant thereof. With this patch in, people can us

[PATCH 2/2] btrfs: use while_list_drain_entry

2013-06-04 Thread Jörn Engel
Signed-off-by: Joern Engel --- fs/btrfs/backref.c | 15 +++ fs/btrfs/compression.c |4 +--- fs/btrfs/disk-io.c |6 +- fs/btrfs/extent-tree.c | 17 +++-- fs/btrfs/extent_io.c|8 ++-- fs/btrfs/inode.c| 16 +++- fs

Re: [PATCH 0/2] introduce list_for_each_entry_del

2013-06-04 Thread Jörn Engel
On Tue, 4 June 2013 14:44:35 -0400, Jörn Engel wrote: > > Or while_list_drain? Not sure if the silence is approval or lack of interest, but a new set of patches is posted. By playing around with the implementation a bit, I have actually found a variant that makes the object code shrink. Not one

Re: [PATCH V4 00/30] thermal: exynos: Add thermal driver for exynos5440

2013-06-04 Thread amit daniel kachhap
On Tue, Jun 4, 2013 at 6:31 PM, Eduardo Valentin wrote: > > Hi, > > On 04-06-2013 08:57, Eduardo Valentin wrote: >> On 04-06-2013 00:55, amit daniel kachhap wrote: >>> Hi Eduardo, >>> >>> On Wed, May 15, 2013 at 8:14 PM, Eduardo Valentin >>> wrote: On 14-05-2013 05:58, Amit Daniel Kachhap wr

Re: [PATCH] cw1200: fix some obvious mistakes

2013-06-04 Thread Solomon Peachy
On Mon, Jun 03, 2013 at 10:40:42AM +0200, Arnd Bergmann wrote: > It's much better than what you have today, but not ideal because it > means the driver cannot be a loadable module any more. At least not when being built with platform data, anyway. I suppose the next step here is to define some de

Re: Please backport bee980d9e9642e96351fa3ca9077b853ecf62f57 (xen/events: Handle VIRQ_TIMER before any other hardirq in event loop.) to earlier kernels v3.8...and so on

2013-06-04 Thread Greg KH
On Mon, Jun 03, 2013 at 08:02:32AM -0400, Konrad Rzeszutek Wilk wrote: > Hey Greg, > > I hadn't (by mistake) put the CC: sta...@vger.kernel.org on said patch > (Which is in the Linux kernel). > > If possible please back-port said patch to the existing stable trees. > Attached is a version that ap

RE: [PATCH v2] mfd: DT bindings for the palmas family MFD

2013-06-04 Thread J, KEERTHY
Hello Lee Jones, > -Original Message- > From: Lee Jones [mailto:lee.jo...@linaro.org] > Sent: Tuesday, June 04, 2013 5:45 PM > To: J, KEERTHY > Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > devicetree-disc...@lists.ozlabs.org; swar...@wwwdotorg.org; > broo...@opensource.wo

Re: [PATCH 1/2] f2fs: add remount_fs callback support

2013-06-04 Thread Namjae Jeon
2013/6/4 Gu Zheng : > On 06/01/2013 03:20 PM, Namjae Jeon wrote: > >> From: Namjae Jeon >> >> Add the f2fs_remount function call which will be used >> during the filesystem remounting. This function >> will help us to change the mount options specific to >> f2fs. >> >> Also modify the f2fs backgro

Re: [PATCH 1/2] sched: Optimize build_sched_domains() for saving first SD node for a cpu

2013-06-04 Thread Michael Wang
Hi, Viresh On 06/04/2013 07:20 PM, Viresh Kumar wrote: [snip] > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 58453b8..638f6cb 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -6533,16 +6533,13 @@ static int build_sched_domains(const struct cpumask > *cpu_map,

Re: Please add to stable: module: don't unlink the module until we've removed all exposure.

2013-06-04 Thread Rusty Russell
Joe Lawrence writes: > On Tue, 04 Jun 2013 15:26:28 +0930 > Rusty Russell wrote: > >> Do you have a backtrace of the 3.9.4 crash? You can add "CFLAGS_module.o >> = -O0" to get a clearer backtrace if you want... > > Hi Rusty, > > See my 3.9 stack traces below, which may or may not be what Ben had

Re: Please add to stable: module: don't unlink the module until we've removed all exposure.

2013-06-04 Thread Rusty Russell
Ben Greear writes: > On 06/04/2013 09:53 AM, Ben Greear wrote: >> On 06/04/2013 07:07 AM, Joe Lawrence wrote: >>> On Tue, 04 Jun 2013 15:26:28 +0930 >>> Rusty Russell wrote: >>> Do you have a backtrace of the 3.9.4 crash? You can add "CFLAGS_module.o = -O0" to get a clearer backtrace i

Re: 3.9.x: Possible race related to stop_machine leads to lockup.

2013-06-04 Thread Rusty Russell
Ben Greear writes: > On 06/04/2013 02:18 PM, Ben Greear wrote: >> I've been trying to figure out why I see the migration/* processes >> hang in a busy loop >> >> While reading the stop_machine.c file, I think I might have an >> answer. >> >> The set_state() method sets the thread_ack to the cu

Re: [PATCH 0/5] dwc3: omap: adapt dwc3 to use extcon framework

2013-06-04 Thread Kishon Vijay Abraham I
Hi Ruchika, On Tuesday 04 June 2013 07:53 PM, Ruchika Kharwar wrote: Kishon, What is the expectation when there is no palmas tied to dwc3/dwc3-omap ? In the probe of dwc3-omap I have this check "if (of_property_read_bool(node, "extcon"))" So If dwc3 node does not have extcon property, it wont

Re: Please add to stable: module: don't unlink the module until we've removed all exposure.

2013-06-04 Thread Greg KH
On Mon, Jun 03, 2013 at 10:17:17AM -0400, Joe Lawrence wrote: > [Cc: sta...@vger.kernel.org] > > Third time is a charm? The stable address was incorrect from the first > msg in this thread, but the relevant bits remain quoted below... Really? I'm totally confused... > On Mon, 3 Jun 2013, Joe

Re: [PATCH 1/2] sched: Optimize build_sched_domains() for saving first SD node for a cpu

2013-06-04 Thread Viresh Kumar
On 5 June 2013 10:12, Michael Wang wrote: > Hi, Viresh > > On 06/04/2013 07:20 PM, Viresh Kumar wrote: > [snip] >> diff --git a/kernel/sched/core.c b/kernel/sched/core.c >> index 58453b8..638f6cb 100644 >> --- a/kernel/sched/core.c >> +++ b/kernel/sched/core.c >> @@ -6533,16 +6533,13 @@ static int

Re: [PATCH] x86/tlb_info: detect more tlb configuration

2013-06-04 Thread Kirill A. Shutemov
Alex Shi wrote: > On 06/04/2013 11:09 PM, Kirill A. Shutemov wrote: > > > > Kirill A. Shutemov wrote: > >> From: "Kirill A. Shutemov" > >> > > > > Err.. Forgot CC lists. > > > >> Software Developer’s Manual covers two more TLB configurations: > >> > >> 63H Data TLB: 1 GByte pages, 4-way

Active-low behavior in gpiolib

2013-06-04 Thread Alexandre Courbot
Hi everyone, While preparing the v2 of the descriptor-based GPIO interface (gpiod), I stumbled upon this point that looks like some inconsistency in the current interface. gpiolib.c defines the following flags that can influence the gpio output: FLAG_ACTIVE_LOW, FLAG_OPEN_DRAIN, and FLAG_OPEN_SOU

Re: [PATCH 1/3] pinctrl: pinctrl-single: enhance to configure multiple pins of different modules

2013-06-04 Thread Haojian Zhuang
On Tue, May 21, 2013 at 10:08 PM, Manjunathappa, Prakash wrote: > Add support to configure multiple pins in each register, existing > implementation added by [1] does not support full fledge multiple pin > configuration in single register, reports a pin clash when different > modules configure dif

Re: [PATCH 2/3] pinctrl: pinctrl-single: pin names for pinctrl-single.bits

2013-06-04 Thread Haojian Zhuang
On Tue, May 21, 2013 at 10:08 PM, Manjunathappa, Prakash wrote: > Take care to name pin names as > register-offset.bit-pos-of-pin-in-register in case configuring multiple > pins in register. > > Signed-off-by: Manjunathappa, Prakash > --- Acked-by: Haojian Zhuang -- To unsubscribe from this lis

Re: [PATCH 1/2] sched: Optimize build_sched_domains() for saving first SD node for a cpu

2013-06-04 Thread Michael Wang
On 06/05/2013 01:07 PM, Viresh Kumar wrote: > On 5 June 2013 10:12, Michael Wang wrote: >> Hi, Viresh >> >> On 06/04/2013 07:20 PM, Viresh Kumar wrote: >> [snip] >>> diff --git a/kernel/sched/core.c b/kernel/sched/core.c >>> index 58453b8..638f6cb 100644 >>> --- a/kernel/sched/core.c >>> +++ b/ker

Re: [PATCH v6 1/9] drivers: phy: add generic PHY framework

2013-06-04 Thread Kishon Vijay Abraham I
Hi, On Tuesday 04 June 2013 07:13 PM, Sylwester Nawrocki wrote: Hi, On 06/04/2013 02:26 PM, Kishon Vijay Abraham I wrote: +static inline int phy_init(struct phy *phy) +{ + pm_runtime_get_sync(&phy->dev); Hmm, no need to check return value here ? Also it looks a bit unexpected to I pu

linux-next: Tree for Jun 5

2013-06-04 Thread Stephen Rothwell
Hi all, Changes since 20130604: The staging tree still has its build failure. The msm tree still has its build failure. I have created today's linux-next tree at git://git.kernel.org/pub/scm/linux/kernel/git

[PATCH 1/3] firmware loader: don't export cache_firmware and uncache_firmware

2013-06-04 Thread Ming Lei
Looks no drivers have the explict requirement for the two, just don't export them anymore. Signed-off-by: Ming Lei --- drivers/base/firmware_class.c |6 ++ include/linux/firmware.h | 11 --- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/base/firmw

[PATCH 0/3] firmware loader: cleanup and introduce search paths option

2013-06-04 Thread Ming Lei
Hi, The 1st patch cancels exporting of cache_firmware and uncache_firmware. The 2nd one simplifies holding module for request_firmware(). The 3rd one introduces one kernel option to allow distributions or users to set their specific firmware search paths. drivers/base/Kconfig | 12 +

[PATCH 3/3] firmware loader: allow distribution to choose default search paths

2013-06-04 Thread Ming Lei
For some distributions(e.g. android), firmware images aren't put under kernel built-in search paths, so introduce one Kconfig option to allow distributions or users to choose its specific default search paths, which are always tried before searching from kernel built-in paths in direct loading. Cc

[PATCH 2/3] firmware loader: simplify holding module for request_firmware

2013-06-04 Thread Ming Lei
module reference doesn't cover direct loading path, so this patch simply holds the module in the whole life time of request_firmware() to fix the problem. Signed-off-by: Ming Lei --- drivers/base/firmware_class.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a

Re: [PATCH v2 01/10] zram: kill unused zram_get_num_devices()

2013-06-04 Thread Minchan Kim
Hello, On Wed, Jun 05, 2013 at 12:05:59AM +0800, Jiang Liu wrote: > Now there's no caller of zram_get_num_devices(), so kill it. > And change zram_devices to static because it's only used in zram_drv.c. > > Signed-off-by: Jiang Liu I am looking at next-20130604 an

[RFC] Micron M25P80 Part name variants

2013-06-04 Thread Peter Crosthwaite
Hi All, For micron M25P80 parts there is a mix of naming conventions in the device table: /* Micron */ { "n25q064", INFO(0x20ba17, 0, 64 * 1024, 128, 0) }, { "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256, 0) }, { "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256,

[PATCH] vfio: fix crash on rmmod

2013-06-04 Thread Alexey Kardashevskiy
devtmpfs_delete_node() calls devnode() callback with mode==NULL but vfio still tries to write there. The patch fixes this. Signed-off-by: Alexey Kardashevskiy --- Steps to reproduce on freshly booted system with no devices given to VFIO: modprobe vfio rmmod vfio_iommu_spapr_tce rmmod vfio ---

Re: [PATCH] usbnet: improve/fix status interrupt endpoint interval

2013-06-04 Thread Oliver Neukum
On Tuesday 04 June 2013 20:28:30 Andreas Mohr wrote: > > From 307685fe8e6dfc8181e30167b9c31479332cb22f Mon Sep 17 00:00:00 2001 > From: Andreas Mohr > Date: Sun, 2 Jun 2013 20:37:05 +0200 > Subject: [PATCH] usbnet: improve/fix status interrupt endpoint interval > tweaking. > > - failed to take

Re: [PATCH v2 02/10] zram: avoid invalid memory access in zram_exit()

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:00AM +0800, Jiang Liu wrote: > Memory for zram->disk object may have already been freed after returning > from destroy_device(zram), then it's unsafe for zram_reset_device(zram) > to access zram->disk again. > > We can't solve this bug by flipping the order of destroy

[PATCH 0/4 v3] KVM: PPC: IOMMU in-kernel handling

2013-06-04 Thread Alexey Kardashevskiy
Ben, ping! :) This series has tiny fixes (capability and ioctl numbers, changed documentation, compile errors in some configuration). More details are in the commit messages. Rebased on v3.10-rc4. Alexey Kardashevskiy (4): KVM: PPC: Add support for multiple-TCE hcalls powerpc: Prepare to sup

[PATCH 3/4] KVM: PPC: Add support for IOMMU in-kernel handling

2013-06-04 Thread Alexey Kardashevskiy
This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT and H_STUFF_TCE requests without passing them to QEMU, which should save time on switching to QEMU and back. Both real and virtual modes are supported - whenever the kernel fails to handle TCE request, it passes it to the virtual

[PATCH 1/4] KVM: PPC: Add support for multiple-TCE hcalls

2013-06-04 Thread Alexey Kardashevskiy
This adds real mode handlers for the H_PUT_TCE_INDIRECT and H_STUFF_TCE hypercalls for QEMU emulated devices such as IBMVIO devices or emulated PCI. These calls allow adding multiple entries (up to 512) into the TCE table in one call which saves time on transition to/from real mode. This adds a t

[PATCH 2/4] powerpc: Prepare to support kernel handling of IOMMU map/unmap

2013-06-04 Thread Alexey Kardashevskiy
The current VFIO-on-POWER implementation supports only user mode driven mapping, i.e. QEMU is sending requests to map/unmap pages. However this approach is really slow, so we want to move that to KVM. Since H_PUT_TCE can be extremely performance sensitive (especially with network adapters where eac

[PATCH 4/4] KVM: PPC: Add hugepage support for IOMMU in-kernel handling

2013-06-04 Thread Alexey Kardashevskiy
This adds special support for huge pages (16MB). The reference counting cannot be easily done for such pages in real mode (when MMU is off) so we added a list of huge pages. It is populated in virtual mode and get_page is called just once per a huge page. Real mode handlers check if the requested

Re: [PATCH v2 03/10] zram: use zram->lock to protect zram_free_page() in swap free notify path

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:01AM +0800, Jiang Liu wrote: > zram_free_page() is protected by down_write(&zram->lock) when called by > zram_bvec_write(), but there's no such protection when called by > zram_slot_free_notify(), which may cause wrong states to zram object. > > There are two possible

Re: [PATCH v2 04/10] zram: destroy all devices on error recovery path in zram_init()

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:02AM +0800, Jiang Liu wrote: > On error recovery path of zram_init(), it leaks the zram device object > causing the failure. So change create_device() to free allocated > resources on error path. > > Signed-off-by: Jiang Liu > Cc: sta...@vger.kernel.org Acked-by: Min

Re: [patch] mm, memcg: add oom killer delay

2013-06-04 Thread David Rientjes
On Tue, 4 Jun 2013, Michal Hocko wrote: > > I'm not sure a userspace oom notifier would want to keep a > > preallocated buffer around that is mlocked in memory for all possible > > lengths of this file. > > Well, an oom handler which allocates memory under the same restricted > memory doesn't mak

Re: [PATCH v2 05/10] zram: avoid double free in function zram_bvec_write()

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:03AM +0800, Jiang Liu wrote: > When doing a patial write and the whole page is filled with zero, > zram_bvec_write() will free uncmem twice. > > Signed-off-by: Jiang Liu > Cc: sta...@vger.kernel.org Acked-by: Minchan Kim -- Kind regards, Minchan Kim -- To unsubscr

Re: [PATCH v2 06/10] zram: avoid access beyond the zram device

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:04AM +0800, Jiang Liu wrote: > Function valid_io_request() should verify the entire request doesn't > exceed the zram device, otherwise it will cause invalid memory access. Right but you need to explain what invalid memory access is and what's the result from that to

Re: [PATCHv13 2/4] zbud: add to mm/

2013-06-04 Thread Bob Liu
Hi Seth, On 06/04/2013 04:33 AM, Seth Jennings wrote: > zbud is an special purpose allocator for storing compressed pages. It is > designed to store up to two compressed pages per physical page. While this > design limits storage density, it has simple and deterministic reclaim > properties that

[net-next rfc V3 1/9] macvtap: fix a possible race between queue selection and changing queues

2013-06-04 Thread Jason Wang
Complier may generate codes that re-read the vlan->numvtaps during macvtap_get_queue(). This may lead a race if vlan->numvtaps were changed in the same time and which can lead unexpected result (e.g. very huge value). We need prevent the compiler from generating such codes by adding an ACCESS_ONCE

Re: [PATCH-v2] Set irq thread to RT priority on creation

2013-06-04 Thread Ivo Sieben
Hi Thomas, 2013/6/3 Thomas Gleixner : > > The question is why there is data present in the UART when the UART > driver has not initialized the UART. Up to the point where the UART is > opened and the interrupt handler is installed the receiver should be > disabled. Also there is the question why a

[net-next rfc V3 0/9] Multiqueue API for macvtap

2013-06-04 Thread Jason Wang
Hi all: This series implements a v3 of fully tuntap compatiable API which could be used by userspace to manage multiple macvtap queues. The main parts is to add TUNSETQUEUE ioctl support for macvtap. Patch 1 - 5 was some tuntap compatibility and misc cleanups. Patch 6 removes the linear search in

[net-next rfc V3 4/9] macvtap: introduce macvtap_get_vlan()

2013-06-04 Thread Jason Wang
Factor out the device holding logic to a macvtap_get_vlan(), this will be also used by multiqueue API. Signed-off-by: Jason Wang --- drivers/net/macvtap.c | 27 --- 1 files changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvt

[net-next rfc V3 5/9] macvlan: change the max number of queues to 16

2013-06-04 Thread Jason Wang
Macvtap should be at least compatible with tap, so change the max number to 16. Signed-off-by: Jason Wang --- include/linux/if_macvlan.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/if_macvlan.h b/include/linux/if_macvlan.h index e47ad46..62d8bda 100644

[net-next rfc V3 2/9] macvtap: do not add self to waitqueue if doing a nonblock read

2013-06-04 Thread Jason Wang
There's no need to add self to waitqueue if doing a nonblock read. This could help to avoid the spinlock contention. Signed-off-by: Jason Wang --- drivers/net/macvtap.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c in

[net-next rfc V3 6/9] macvtap: eliminate linear search

2013-06-04 Thread Jason Wang
Linear search were used in both get_slot() and macvtap_get_queue(), this is because: - macvtap didn't reshuffle the array of taps when create or destroy a queue, so when adding a new queue, macvtap must do linear search to find a location for the new queue. This will also complicate the TUNSET

[net-next rfc V3 8/9] macvtap: add TUNSETQUEUE ioctl

2013-06-04 Thread Jason Wang
This patch adds TUNSETQUEUE ioctl to let userspace can temporarily disable or enable a queue of macvtap. This is used to be compatible at API layer of tuntap to simplify the userspace to manage the queues. This is done through introducing a linked list to track all taps while using vlan->taps array

[net-next rfc V3 9/9] macvtap: enable multiqueue flag

2013-06-04 Thread Jason Wang
To notify the userspace about our capability of multiqueue. Signed-off-by: Jason Wang --- drivers/net/macvtap.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 355e6ad..b907aee 100644 --- a/drivers/net/macvtap.c +

[net-next rfc V3 7/9] macvtap: allow TUNSETIFF to create multiqueue device

2013-06-04 Thread Jason Wang
Though the queue were in fact created by open(), we still need to add this check to be compatible with tuntap which can let mgmt software use a single API to manage queues. This patch only validates the device name and moves the TUNSETIFF to a helper. Signed-off-by: Jason Wang --- drivers/net/ma

[net-next rfc V3 3/9] macvlan: switch to use IS_ENABLED()

2013-06-04 Thread Jason Wang
Acked-by: Michael S. Tsirkin Signed-off-by: Jason Wang --- include/linux/if_macvlan.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/if_macvlan.h b/include/linux/if_macvlan.h index 84dde1d..e47ad46 100644 --- a/include/linux/if_macvlan.h +++ b/include/lin

[PATCH] eCryptfs: Check return of filemap_write_and_wait during fsync

2013-06-04 Thread Tyler Hicks
Error out of ecryptfs_fsync() if filemap_write_and_wait() fails. Signed-off-by: Tyler Hicks Cc: Paul Taysom Cc: Olof Johansson --- After giving Paul's patch one more look, I noticed that we were ignoring filemap_write_and_wait()'s return value. I plan to push this patch along with Paul's origi

Re: [PATCH 0/2] introduce list_for_each_entry_del

2013-06-04 Thread Arne Jansen
On 05.06.2013 04:09, Jörn Engel wrote: > On Tue, 4 June 2013 14:44:35 -0400, Jörn Engel wrote: >> >> Or while_list_drain? I'm fine with while_list_drain, although a name starting with list_ like all other list macros would be nice. How about just list_drain? The next question is where to put it in

Re: [PATCH v2 07/10] zram: optimize memory operations with clear_page()/copy_page()

2013-06-04 Thread Minchan Kim
Looks good but although we can know your intention easily with only subject, it would be better to add body in description. More questionable thing is I'm not sure Greg accepts this optimization patch(NOT bug fix) because he claimed he will not accept any patches from zram/zsmalloc except plain bu

<    5   6   7   8   9   10