Re: [PATCH RESEND v1 03/16] vfs: add I/O frequency update function

2013-01-11 Thread Zhi Yong Wu
On Fri, Jan 11, 2013 at 10:27 PM, David Sterba wrote: > On Fri, Jan 11, 2013 at 03:38:31PM +0800, Zhi Yong Wu wrote: >> On Thu, Jan 10, 2013 at 8:51 AM, David Sterba wrote: >> > On Thu, Dec 20, 2012 at 10:43:22PM +0800, zwu.ker...@gmail.com wrote: >> >> --- a/fs

Re: [PATCH v1 resend hot_track 00/16] vfs: hot data tracking

2012-12-13 Thread Zhi Yong Wu
On Thu, Dec 13, 2012 at 3:50 AM, Darrick J. Wong wrote: > On Mon, Dec 10, 2012 at 11:30:03AM +0800, Zhi Yong Wu wrote: >> HI, all guys. >> >> any comments or suggestions? > > Why did ffsb drop from 924 transactions/sec to 322? It is maybe that some noise operations i

Re: [RFC v2 02/10] vfs: add support for updating access frequency

2012-09-26 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 10:19 AM, Dave Chinner wrote: > On Wed, Sep 26, 2012 at 10:53:07AM +0800, Zhi Yong Wu wrote: >> On Tue, Sep 25, 2012 at 5:17 PM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:27PM +0800, zwu.ker...@gmail.com wrote: >> > I note that

Re: [RFC v2 03/10] vfs: add one new mount option '-o hottrack'

2012-09-26 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 10:20 AM, Dave Chinner wrote: > On Wed, Sep 26, 2012 at 10:56:08AM +0800, Zhi Yong Wu wrote: >> On Tue, Sep 25, 2012 at 5:28 PM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:28PM +0800, zwu.ker...@gmail.com wrote: >> >> From: Zhi Yo

Re: [RFC v2 03/10] vfs: add one new mount option '-o hottrack'

2012-09-26 Thread Zhi Yong Wu
On Tue, Sep 25, 2012 at 5:28 PM, Dave Chinner wrote: > On Sun, Sep 23, 2012 at 08:56:28PM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Introduce one new mount option '-o hottrack', >> and add its parsing support. >> Its usage look

Re: [RFC v2 05/10] vfs: introduce one hash table

2012-09-26 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 11:43 AM, Dave Chinner wrote: > On Sun, Sep 23, 2012 at 08:56:30PM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Adds a hash table structure which contains >> a lot of hash list and is used to efficiently >> look up the

Re: [RFC v2 06/10] vfs: enable hot data tracking

2012-09-26 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 11:54 AM, Dave Chinner wrote: > On Sun, Sep 23, 2012 at 08:56:31PM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Miscellaneous features that implement hot data tracking >> and generally make the hot data functions a bit more fr

Re: [RFC v2 07/10] vfs: fork one kthread to update data temperature

2012-09-26 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 12:03 PM, Dave Chinner wrote: > On Sun, Sep 23, 2012 at 08:56:32PM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Fork and run one kernel kthread to calculate >> that temperature based on some metrics kept >> in custom

Re: [RFC v2 05/10] vfs: introduce one hash table

2012-09-27 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 2:57 PM, Dave Chinner wrote: > On Thu, Sep 27, 2012 at 02:23:16PM +0800, Zhi Yong Wu wrote: >> On Thu, Sep 27, 2012 at 11:43 AM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:30PM +0800, zwu.ker...@gmail.com wrote: >> >> From: Zhi

Re: [RFC v2 06/10] vfs: enable hot data tracking

2012-09-27 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 2:59 PM, Dave Chinner wrote: > On Thu, Sep 27, 2012 at 02:28:12PM +0800, Zhi Yong Wu wrote: >> On Thu, Sep 27, 2012 at 11:54 AM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:31PM +0800, zwu.ker...@gmail.com wrote: >&

Re: [RFC v2 07/10] vfs: fork one kthread to update data temperature

2012-09-27 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 3:01 PM, Dave Chinner wrote: > On Thu, Sep 27, 2012 at 02:54:22PM +0800, Zhi Yong Wu wrote: >> On Thu, Sep 27, 2012 at 12:03 PM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:32PM +0800, zwu.ker...@gmail.com wrote: >> >> From: Zhi Y

Re: [RFC v2 03/10] vfs: add one new mount option '-o hottrack'

2012-09-27 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 3:05 PM, Dave Chinner wrote: > On Thu, Sep 27, 2012 at 01:25:34PM +0800, Zhi Yong Wu wrote: >> On Tue, Sep 25, 2012 at 5:28 PM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:28PM +0800, zwu.ker...@gmail.com wrote: >> >> From: Zhi Yo

Re: [PATCH RESEND v1 00/16] vfs: hot data tracking

2013-01-07 Thread Zhi Yong Wu
/7e010b4fe193c6cf49c8c946be301ed3d3ac9eae 5.) mail_server https://github.com/wuzhy/perf_report/commit/225f2b51ae3baab774e7cda6009d3745ec742d18 On Thu, Dec 20, 2012 at 10:43 PM, wrote: > From: Zhi Yong Wu > > HI, guys, > > This patchset has been done scalability or performance tests > by

Re: [PATCH RESEND v1 00/16] vfs: hot data tracking

2013-01-07 Thread Zhi Yong Wu
On Thu, Dec 20, 2012 at 10:43 PM, wrote: > From: Zhi Yong Wu > > HI, guys, > > This patchset has been done scalability or performance tests > by fs_mark, ffsb and compilebench. > I have done the perf testing on Linux 3.7.0-rc8+ with Intel(R) Core(TM) > i7-3770 CPU @

Re: [PATCH RESEND v1 01/16] vfs: introduce some data structures

2013-01-09 Thread Zhi Yong Wu
the file name written here is not wanted, so > please drop it (and from .h too) Done. > >> + * >> + * Copyright (C) 2012 IBM Corp. All rights reserved. >> + * Written by Zhi Yong Wu >> + * >> + * This program is free software; you can redistribute it and/or

Re: [PATCH 1/2] mm: fix the incorrect function name in alloc_low_pages()

2013-11-04 Thread Zhi Yong Wu
CCed Andrew Morton On Thu, Oct 31, 2013 at 8:52 PM, Zhi Yong Wu wrote: > From: Zhi Yong Wu > > Signed-off-by: Zhi Yong Wu > --- > arch/x86/mm/init.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c

Re: [PATCH 2/2] mm: fix the comment in zlc_setup()

2013-11-04 Thread Zhi Yong Wu
CCed Andrew Morton On Thu, Oct 31, 2013 at 8:52 PM, Zhi Yong Wu wrote: > From: Zhi Yong Wu > > Signed-off-by: Zhi Yong Wu > --- > mm/page_alloc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index dd88

[PATCH v6 00/11] VFS hot tracking

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu The patchset is trying to introduce hot tracking function in VFS layer, which will keep track of real disk I/O in memory. By it, you will easily know more details about disk I/O, and then detect where disk I/O hot spots are. Also, specific FS can take use of it to do accurate

[PATCH v6 02/11] VFS hot tracking: Track IO and record heat information

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu This patch adds read/write code paths: include read_pages(), do_writepages(), do_generic_file_read() and __blockdev_direct_IO() to record heat information. When real disk i/o for an inode is done, its own hot_inode_item will be created or updated in the RB tree for the

[PATCH v6 04/11] VFS hot tracking: Add shrinker functionality to curtail memory usage

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu Register a shrinker to control the amount of memory that is used in tracking hot regions. If we are throwing inodes out of memory due to memory pressure, we most definitely are going to need to reduce the amount of memory the tracking code is using, even if it means losing

[PATCH v6 05/11] VFS hot tracking: Add an ioctl to get hot tracking information

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu FS_IOC_GET_HEAT_INFO: return a struct containing the various metrics collected in hot_freq_data structs, and also return a calculated data temperature based on those metrics. Optionally, retrieve the temperature from the hot data hash list instead of recalculating it. Signed

[PATCH v6 07/11] VFS hot tracking: Add a /proc interface to control memory usage

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu Introduce a /proc interface hot-mem-high-thresh and to cap the memory which is consumed by hot_inode_item and hot_range_item, and they will be in the unit of 1M bytes. Signed-off-by: Chandra Seetharaman Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c| 29

[PATCH v6 06/11] VFS hot tracking: Add a /proc interface to make the interval tunable

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu Add a /proc interface hot-update-interval under the dir /proc/sys/fs/ in order to turn HOT_UPDATE_INTERVAL into a tunable parameter. Signed-off-by: Chandra Seetharaman Signed-off-by: Zhi Yong Wu --- fs/hot_tracking.c| 6 -- fs/hot_tracking.h| 2

[PATCH v6 08/11] VFS hot tracking: Add documentation

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu Add Documentation for VFS hot tracking feature Signed-off-by: Chandra Seetharaman Signed-off-by: Zhi Yong Wu --- Documentation/filesystems/00-INDEX | 2 + Documentation/filesystems/hot_tracking.txt | 207 + 2 files changed, 209

[PATCH v6 11/11] MAINTAINERS: add the maintainers for VFS hot tracking

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu This patch adds maintainer information for VFS hot tracking into the MAINTAINERS file. Signed-off-by: Zhi Yong Wu Signed-off-by: Chandra Seetharaman --- MAINTAINERS | 12 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ffcaf97

[PATCH v6 10/11] VFS hot tracking, xfs: Add hot tracking support

2013-11-06 Thread Zhi Yong Wu
From: Dave Chinner Connect up the VFS hot tracking support so XFS filesystem can make use of it. Signed-off-by: Dave Chinner Signed-off-by: Zhi Yong Wu --- fs/xfs/xfs_mount.h | 1 + fs/xfs/xfs_super.c | 18 ++ 2 files changed, 19 insertions(+) diff --git a/fs/xfs

[PATCH v6 09/11] VFS hot tracking, btrfs: Add hot tracking support

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu Introduce one new mount option '-o hot_track', and add its parsing support. Its usage looks like: mount -o hot_track mount -o nouser,hot_track mount -o nouser,hot_track,loop mount -o hot_track,nouser Reviewed-by: David Sterba Signed-off-by: Chandra S

[PATCH v6 01/11] VFS hot tracking: Define basic data structures and functions

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu This patch includes the basic data structure and functions needed for VFS hot tracking. It adds hot_inode_tree struct to keep track of frequently accessed files, and is keyed by {inode, offset}. Trees contain hot_inode_items representing those files and hot_range_items

[PATCH v6 03/11] VFS hot tracking: Add a workqueue to move items between hot maps

2013-11-06 Thread Zhi Yong Wu
From: Zhi Yong Wu Add a workqueue per superblock and a delayed_work to run periodic work to update map info on each superblock. Two arrays of map list are defined, one is for hot inode items, and the other is for hot extent items. The hot items in the RB-tree will be at first distilled into

[RESEND PATCH net-next 0/4] net: several cleanups

2013-11-27 Thread Zhi Yong Wu
From: Zhi Yong Wu Per David's request, it's time to resend them now. Zhi Yong Wu (4): vhost: remove the dead branch vhost: adjust vhost_dev_init() to be void macvtap: remove the dead branch macvtap: adjust macvtap_skb_to_vnet_hdr() to be void drivers/net/macvta

[RESEND PATCH net-next 2/4] vhost: adjust vhost_dev_init() to be void

2013-11-27 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu Acked-by: Michael S. Tsirkin --- drivers/vhost/net.c |4 ++-- drivers/vhost/scsi.c |2 +- drivers/vhost/test.c |3 +-- drivers/vhost/vhost.c |4 +--- drivers/vhost/vhost.h |2 +- 5 files changed, 6 insertions(+), 9 deletions

[RESEND PATCH net-next 4/4] macvtap: adjust macvtap_skb_to_vnet_hdr() to be void

2013-11-27 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- drivers/net/macvtap.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index eeb1a97..155d60e 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -588,7

[RESEND PATCH net-next 3/4] macvtap: remove the dead branch

2013-11-27 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- drivers/net/macvtap.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index dc76670..eeb1a97 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -780,8 +780,6

[RESEND PATCH net-next 1/4] vhost: remove the dead branch

2013-11-27 Thread Zhi Yong Wu
From: Zhi Yong Wu Since vhost_dev_init() forever return 0, some branches are never run, therefore need to be removed. Signed-off-by: Zhi Yong Wu Acked-by: Michael S. Tsirkin --- drivers/vhost/net.c |5 - drivers/vhost/scsi.c |5 - drivers/vhost/test.c |5 - 3 files

Re: [RESEND PATCH net-next 0/4] net: several cleanups

2013-11-27 Thread Zhi Yong Wu
On Thu, Nov 28, 2013 at 12:43 PM, David Miller wrote: > From: Zhi Yong Wu > Date: Thu, 28 Nov 2013 09:31:29 +0800 > >> Per David's request, it's time to resend them now. > > No, it is not the time. > > You should not submit these kinds of patches until the

Re: [PATCH v6 00/11] VFS hot tracking

2013-11-30 Thread Zhi Yong Wu
HI, Ping again On Thu, Nov 21, 2013 at 9:57 PM, Zhi Yong Wu wrote: > HI, Maintainers > > Ping again > > On Thu, Nov 14, 2013 at 2:33 AM, Zhi Yong Wu wrote: >> Ping >> >> On Wed, Nov 6, 2013 at 9:45 PM, Zhi Yong Wu wrote: >>> From: Zhi Yo

[PATCH 3/3] mm, memory-failure: fix the typo in me_pagecache_dirty()

2013-11-08 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- mm/memory-failure.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index bf3351b..d8ec181 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -611,7 +611,7 @@ static

[PATCH 1/3] mm, slub: fix the typo in include/linux/slub_def.h

2013-11-08 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- include/linux/slub_def.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index cc0b67e..f56bfa9 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h

[PATCH 2/3] mm, slub: fix the typo in mm/slub.c

2013-11-08 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- mm/slub.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index c3eb3d3..7a64327 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -155,7 +155,7 @@ static inline bool kmem_cache_has_cpu_partial(struct

Re: [PATCH] update xfs maintainers

2013-11-08 Thread Zhi Yong Wu
t; From: Ben Myers > > xfs: update maintainers > > Add Dave as maintainer of XFS. > > Signed-off-by: Ben Myers > --- > MAINTAINERS |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: b/MAINTAINERS > =

Re: [PATCH v6 00/11] VFS hot tracking

2013-11-11 Thread Zhi Yong Wu
ping? any plan to review? On Wed, Nov 6, 2013 at 9:45 PM, Zhi Yong Wu wrote: > From: Zhi Yong Wu > > The patchset is trying to introduce hot tracking function in > VFS layer, which will keep track of real disk I/O in memory. > By it, you will easily know more details abou

Re: [PATCH v6 07/11] VFS hot tracking: Add a /proc interface to control memory usage

2013-11-11 Thread Zhi Yong Wu
On Tue, Nov 12, 2013 at 6:15 AM, Dave Hansen wrote: > On 11/06/2013 05:45 AM, Zhi Yong Wu wrote: >> Introduce a /proc interface hot-mem-high-thresh and >> to cap the memory which is consumed by hot_inode_item >> and hot_range_item, and they will be in the unit of >> 1

Re: [PATCH v6 07/11] VFS hot tracking: Add a /proc interface to control memory usage

2013-11-12 Thread Zhi Yong Wu
On Wed, Nov 13, 2013 at 1:05 AM, Dave Hansen wrote: > On 11/11/2013 02:45 PM, Zhi Yong Wu wrote: >> On Tue, Nov 12, 2013 at 6:15 AM, Dave Hansen wrote: >>> In general, why do you have to control the number of these statically? >> It gives the user or admin one option

Re: [PATCH v6 07/11] VFS hot tracking: Add a /proc interface to control memory usage

2013-11-12 Thread Zhi Yong Wu
On Wed, Nov 13, 2013 at 5:02 AM, Dave Hansen wrote: > On 11/12/2013 12:38 PM, Zhi Yong Wu wrote: >> On Wed, Nov 13, 2013 at 1:05 AM, Dave Hansen wrote: >>> The on/off knob seems to me to be something better left to a mount >>> option, not a global tunable. >> If

[PATCH v2 2/3] net, datagram: fix the incorrect comment in zerocopy_sg_from_iovec()

2013-10-27 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/core/datagram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/datagram.c b/net/core/datagram.c index af814e7..a16ed7b 100644 --- a/net/core/datagram.c +++ b/net/core/datagram.c @@ -577,7 +577,7 @@ EXPORT_SYMBOL

[PATCH v2 1/3] vxlan: silence one build warning

2013-10-27 Thread Zhi Yong Wu
From: Zhi Yong Wu drivers/net/vxlan.c: In function ‘vxlan_sock_add’: drivers/net/vxlan.c:2298:11: warning: ‘sock’ may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/net/vxlan.c:2275:17: note: ‘sock’ was declared here LD drivers/net/built-in.o Signed-off-by: Zhi

[PATCH v2 3/3] net, iovec: fix the incorrect comment in memcpy_fromiovecend()

2013-10-27 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/core/iovec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/iovec.c b/net/core/iovec.c index b77eeec..4cdb7c4 100644 --- a/net/core/iovec.c +++ b/net/core/iovec.c @@ -100,7 +100,7 @@ int memcpy_toiovecend(const

[PATCH] net, mc: fix the incorrect comments in two mc-related functions

2013-10-28 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/core/dev_addr_lists.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/core/dev_addr_lists.c b/net/core/dev_addr_lists.c index 6cda4e2..ec40a84 100644 --- a/net/core/dev_addr_lists.c +++ b/net/core/dev_addr_lists.c

[PATCH 1/2] mm: fix the incorrect function name in alloc_low_pages()

2013-10-31 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- arch/x86/mm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 04664cd..64d860f 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c @@ -53,12 +53,12 @@ __ref void

[PATCH 2/2] mm: fix the comment in zlc_setup()

2013-10-31 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index dd886fa..3d94d0c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1711,7 +1711,7 @@ bool zone_watermark_ok_safe

Re: [PATCH v6 00/11] VFS hot tracking

2013-12-03 Thread Zhi Yong Wu
Ping 6, any reason why this patchset can't get reviewed so far? If no comments, pls merge them. Please don't force me to be impolite, thanks. On Sat, Nov 30, 2013 at 5:55 PM, Zhi Yong Wu wrote: > HI, > > Ping again > > On Thu, Nov 21, 2013 at 9:57 PM, Zhi Yong Wu

[PATCH 1/2] macvtap: update file current position

2013-12-04 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- drivers/net/macvtap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 9093004..957cc5c 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -876,6 +876,8

[PATCH 2/2] macvtap: remove unused paramter in macvtap_do_read()

2013-12-04 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- drivers/net/macvtap.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 957cc5c..c0d412e 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -823,7

[PATCH 3/5] xfs: add xfs_create_tmpfile() for O_TMPFILE support

2013-12-13 Thread Zhi Yong Wu
From: Zhi Yong Wu The function is used to create one O_TMPFILE file. For more info, please refer to: http://oss.sgi.com/archives/xfs/2013-08/msg00339.html Signed-off-by: Zhi Yong Wu --- fs/xfs/xfs_inode.c | 106 +++ fs/xfs/xfs_inode.h

[PATCH 5/5] xfs: allow linkat() on O_TMPFILE files

2013-12-13 Thread Zhi Yong Wu
From: Zhi Yong Wu Enable O_TMPFILE support in linkat(). For more info, please refer to: http://oss.sgi.com/archives/xfs/2013-08/msg00341.html Signed-off-by: Zhi Yong Wu --- fs/xfs/xfs_inode.c | 21 ++--- fs/xfs/xfs_trans_resv.c | 20 fs/xfs

[PATCH 4/5] xfs: add a new method xfs_vn_tmpfile()

2013-12-13 Thread Zhi Yong Wu
From: Zhi Yong Wu Add a new O_TMPFILE method to VFS inteface. For more info, please refer to: http://oss.sgi.com/archives/xfs/2013-08/msg00336.html Signed-off-by: Zhi Yong Wu --- fs/xfs/xfs_iops.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a

[PATCH 0/5] xfs: add O_TMPFILE support

2013-12-13 Thread Zhi Yong Wu
From: Zhi Yong Wu HI, folks It's time to post out the first formal version, welcome to any constructive comment, thanks. If anyone is interested in playing with it, you can get this patchset from my dev git on github: git://github.com/wuzhy/kernel.git xfs_tmpfile The patchse

[PATCH 1/5] xfs: factor prid related codes into xfs_get_initial_prid()

2013-12-13 Thread Zhi Yong Wu
From: Zhi Yong Wu It will be reused by the O_TMPFILE creation function. Signed-off-by: Zhi Yong Wu --- fs/xfs/xfs_inode.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 001aa89..e8b9a68 100644 --- a/fs/xfs

[PATCH 2/5] xfs: adjust the interface of xfs_qm_vop_dqalloc()

2013-12-13 Thread Zhi Yong Wu
From: Zhi Yong Wu There may be not a parent inode or a name for O_TMPFILE support, but will pass a struct xfs_mount to xfs_qm_vop_dqalloc(). So its interface need to be adjusted in order that O_TMPFILE creation function can also use it. Signed-off-by: Zhi Yong Wu --- fs/xfs/xfs_inode.c

Re: [PATCH 2/5] xfs: adjust the interface of xfs_qm_vop_dqalloc()

2013-12-13 Thread Zhi Yong Wu
On Sat, Dec 14, 2013 at 12:32 AM, Christoph Hellwig wrote: > On Fri, Dec 13, 2013 at 10:27:50PM +0800, Zhi Yong Wu wrote: >> From: Zhi Yong Wu >> >> There may be not a parent inode or a name for O_TMPFILE support, but will >> pass >> a struct xfs_mount to xfs_q

Re: [PATCH 3/5] xfs: add xfs_create_tmpfile() for O_TMPFILE support

2013-12-13 Thread Zhi Yong Wu
; and pass the project id that you inherited from the parent here. > -- Regards, Zhi Yong Wu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 4/5] xfs: add a new method xfs_vn_tmpfile()

2013-12-13 Thread Zhi Yong Wu
On Sat, Dec 14, 2013 at 12:39 AM, Christoph Hellwig wrote: > On Fri, Dec 13, 2013 at 10:27:52PM +0800, Zhi Yong Wu wrote: >> From: Zhi Yong Wu >> >> Add a new O_TMPFILE method to VFS inteface. >> For more info, please refer to: >> http://oss.sgi.com/a

Re: [PATCH 5/5] xfs: allow linkat() on O_TMPFILE files

2013-12-13 Thread Zhi Yong Wu
On Sat, Dec 14, 2013 at 12:41 AM, Christoph Hellwig wrote: > On Fri, Dec 13, 2013 at 10:27:53PM +0800, Zhi Yong Wu wrote: >> From: Zhi Yong Wu >> >> Enable O_TMPFILE support in linkat(). >> For more info, please refer to: >> http://oss.sgi.com/archives/xfs/2

Re: [PATCH 5/5] xfs: allow linkat() on O_TMPFILE files

2013-12-14 Thread Zhi Yong Wu
On Sat, Dec 14, 2013 at 4:19 PM, Dave Chinner wrote: > On Sat, Dec 14, 2013 at 01:36:47AM +0800, Zhi Yong Wu wrote: >> On Sat, Dec 14, 2013 at 12:41 AM, Christoph Hellwig >> wrote: >> > On Fri, Dec 13, 2013 at 10:27:53PM +0800, Zhi Yong Wu wrote: >> >> F

Re: [PATCH 1/5] xfs: factor prid related codes into xfs_get_initial_prid()

2013-12-14 Thread Zhi Yong Wu
ould be a separate patch. Good point, will apply it, thanks. > > Thanks, > -Jeff -- Regards, Zhi Yong Wu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[RFC PATCH] net, tun: remove the flow cache

2013-12-16 Thread Zhi Yong Wu
From: Zhi Yong Wu The flow cache is an extremely broken concept, and it usually brings up growth issues and DoS attacks, so this patch is trying to remove it from the tuntap driver, and insteadly use a simpler way for its flow control. Signed-off-by: Zhi Yong Wu --- drivers/net/tun.c | 208

Re: [RFC PATCH] net, tun: remove the flow cache

2013-12-17 Thread Zhi Yong Wu
On Mon, 2013-12-16 at 23:47 -0800, Stephen Hemminger wrote: > On Tue, 17 Dec 2013 15:26:22 +0800 > Zhi Yong Wu wrote: > > > From: Zhi Yong Wu > > > > The flow cache is an extremely broken concept, and it usually brings up > > growth issues and DoS attacks, so

Re: [RFC PATCH] net, tun: remove the flow cache

2013-12-17 Thread Zhi Yong Wu
On Tue, Dec 17, 2013 at 4:49 PM, Jason Wang wrote: > On 12/17/2013 03:26 PM, Zhi Yong Wu wrote: >> From: Zhi Yong Wu >> >> The flow cache is an extremely broken concept, and it usually brings up >> growth issues and DoS attacks, so this patch is trying to remove it fro

Re: [PATCH 2/2] tun: remove useless codes in tun_chr_aio_read() and tun_recvmsg()

2013-12-10 Thread Zhi Yong Wu
id Miller wrote: >>> From: Zhi Yong Wu >>> Date: Sat, 7 Dec 2013 04:55:00 +0800 >>> >>>> From: Zhi Yong Wu >>>> >>>> By checking related codes, it is impossible that ret > len or total_len, >>>> so we should remove some

Re: [PATCH 2/2] tun: remove useless codes in tun_chr_aio_read() and tun_recvmsg()

2013-12-10 Thread Zhi Yong Wu
On Wed, Dec 11, 2013 at 11:19 AM, David Miller wrote: > From: Zhi Yong Wu > Date: Wed, 11 Dec 2013 11:14:04 +0800 > >> Only one reminder, since David has committed the two patches, you >> maybe need to take their impact on your patches into account. > > I reverted thes

[PATCH] vfs, eventfd: fix the typo

2013-12-11 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- fs/eventfd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index 35470d9..710bf80 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -45,7 +45,7 @@ struct eventfd_ctx { * * This function

Re: [PATCH v6 07/11] VFS hot tracking: Add a /proc interface to control memory usage

2013-12-11 Thread Zhi Yong Wu
Ping ^ 7 On Wed, Nov 6, 2013 at 9:45 PM, Zhi Yong Wu wrote: > From: Zhi Yong Wu > > Introduce a /proc interface hot-mem-high-thresh and > to cap the memory which is consumed by hot_inode_item > and hot_range_item, and they will be in the unit of > 1M bytes. > >

Re: [PATCH v6 00/11] VFS hot tracking

2013-12-11 Thread Zhi Yong Wu
Ping ^ 7 On Wed, Nov 6, 2013 at 9:45 PM, Zhi Yong Wu wrote: > From: Zhi Yong Wu > > The patchset is trying to introduce hot tracking function in > VFS layer, which will keep track of real disk I/O in memory. > By it, you will easily know more details about disk I/O, and >

[PATCH 3/3] net, iovec: fix the uncorrect comment in memcpy_fromiovecend()

2013-10-25 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/core/iovec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/iovec.c b/net/core/iovec.c index b77eeec..4cdb7c4 100644 --- a/net/core/iovec.c +++ b/net/core/iovec.c @@ -100,7 +100,7 @@ int memcpy_toiovecend(const

[PATCH 1/3] vxlan: silence one build warning

2013-10-25 Thread Zhi Yong Wu
From: Zhi Yong Wu drivers/net/vxlan.c: In function ‘vxlan_sock_add’: drivers/net/vxlan.c:2298:11: warning: ‘sock’ may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/net/vxlan.c:2275:17: note: ‘sock’ was declared here LD drivers/net/built-in.o Signed-off-by: Zhi

[PATCH 2/3] net, datagram: fix the uncorrect comment in zerocopy_sg_from_iovec()

2013-10-25 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/core/datagram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/datagram.c b/net/core/datagram.c index af814e7..a16ed7b 100644 --- a/net/core/datagram.c +++ b/net/core/datagram.c @@ -577,7 +577,7 @@ EXPORT_SYMBOL

Re: [PATCH 1/3] vxlan: silence one build warning

2013-10-26 Thread Zhi Yong Wu
On Fri, Oct 25, 2013 at 11:41 PM, Stephen Hemminger wrote: > On Fri, 25 Oct 2013 15:49:18 +0800 > Zhi Yong Wu wrote: > >> From: Zhi Yong Wu >> >> drivers/net/vxlan.c: In function ‘vxlan_sock_add’: >> drivers/net/vxlan.c:2298:11: warning: ‘sock’ may be used u

Re: [PATCH 1/3] vxlan: silence one build warning

2013-10-26 Thread Zhi Yong Wu
HI, Stephen I saw it on Fedora 17 without latest kernel. Then what do you think that it is appropriate to solve this problem? discard this patch? If yes, i can also agree. On Sat, Oct 26, 2013 at 10:48 PM, Stephen Hemminger wrote: > On Sat, 26 Oct 2013 15:06:04 +0800 > Zhi Yong Wu

Re: [RFC PATCH] net, tun: remove the flow cache

2013-12-17 Thread Zhi Yong Wu
On Tue, Dec 17, 2013 at 6:05 PM, Jason Wang wrote: > On 12/17/2013 05:13 PM, Zhi Yong Wu wrote: >> On Tue, Dec 17, 2013 at 4:49 PM, Jason Wang wrote: >>> > On 12/17/2013 03:26 PM, Zhi Yong Wu wrote: >>>> >> From: Zhi Yong Wu >>>> >> >

Re: [RFC PATCH] net, tun: remove the flow cache

2013-12-17 Thread Zhi Yong Wu
HI, Tom, On Wed, Dec 18, 2013 at 12:06 PM, Tom Herbert wrote: > On Mon, Dec 16, 2013 at 11:26 PM, Zhi Yong Wu wrote: >> From: Zhi Yong Wu >> >> The flow cache is an extremely broken concept, and it usually brings up >> growth issues and DoS attacks, so this patch

Re: [RFC PATCH] net, tun: remove the flow cache

2013-12-17 Thread Zhi Yong Wu
river for end to end RFS (more exciting prospect). We are finding which two ends do you mean? > that guest to driver accelerations like this (and tso, lro) are quite Sorry, i got a bit confused, the driver here mean "virtio_net" or tuntap driver? > important in getting virtual netw

Re: [PATCH v6 00/11] VFS hot tracking

2013-11-13 Thread Zhi Yong Wu
Ping On Wed, Nov 6, 2013 at 9:45 PM, Zhi Yong Wu wrote: > From: Zhi Yong Wu > > The patchset is trying to introduce hot tracking function in > VFS layer, which will keep track of real disk I/O in memory. > By it, you will easily know more details about disk I/O, and >

[PATCH 4/4] net, virtio_net: replace the magic value

2013-11-18 Thread Zhi Yong Wu
From: Zhi Yong Wu It is more appropriate to use # of queue pairs currently used by the driver instead of a magic value. Signed-off-by: Zhi Yong Wu --- drivers/net/virtio_net.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net

Re: [PATCH 4/4] net, virtio_net: replace the magic value

2013-11-18 Thread Zhi Yong Wu
On Mon, Nov 18, 2013 at 5:50 PM, Michael S. Tsirkin wrote: > On Mon, Nov 18, 2013 at 04:46:20PM +0800, Zhi Yong Wu wrote: >> From: Zhi Yong Wu >> >> It is more appropriate to use # of queue pairs currently used by >> the driver instead of a magic value. >> >

Re: [PATCH 4/4] net, virtio_net: replace the magic value

2013-11-18 Thread Zhi Yong Wu
On Mon, Nov 18, 2013 at 6:15 PM, Michael S. Tsirkin wrote: > On Mon, Nov 18, 2013 at 06:07:45PM +0800, Zhi Yong Wu wrote: >> On Mon, Nov 18, 2013 at 5:50 PM, Michael S. Tsirkin wrote: >> > On Mon, Nov 18, 2013 at 04:46:20PM +0800, Zhi Yong Wu wrote: >> >> From:

[PATCH 1/2] vhost: remove the dead branch

2013-11-18 Thread Zhi Yong Wu
From: Zhi Yong Wu Since vhost_dev_init() forever return 0, some branches are never run, therefore need to be removed. Signed-off-by: Zhi Yong Wu Acked-by: Michael S. Tsirkin --- drivers/vhost/net.c |5 - drivers/vhost/scsi.c |5 - drivers/vhost/test.c |5 - 3 files

[PATCH] net, virtio_net: replace the magic value

2013-11-18 Thread Zhi Yong Wu
From: Zhi Yong Wu It is more appropriate to use # of queue pairs currently used by the driver instead of a magic value. Signed-off-by: Zhi Yong Wu Acked-by: Michael S. Tsirkin --- drivers/net/virtio_net.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net

[PATCH 2/2] vhost: adjust vhost_dev_init() to be void

2013-11-18 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu Acked-by: Michael S. Tsirkin --- drivers/vhost/net.c |4 ++-- drivers/vhost/scsi.c |2 +- drivers/vhost/test.c |3 +-- drivers/vhost/vhost.c |4 +--- drivers/vhost/vhost.h |2 +- 5 files changed, 6 insertions(+), 9 deletions

[net-next PATCH 5/6] macvtap: update file current position

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- drivers/net/macvtap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index f599c47..4914d85 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -872,6 +872,8

[net-next PATCH 2/6] vhost: adjust vhost_dev_init() to be void

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu Acked-by: Michael S. Tsirkin --- drivers/vhost/net.c |4 ++-- drivers/vhost/scsi.c |2 +- drivers/vhost/test.c |3 +-- drivers/vhost/vhost.c |4 +--- drivers/vhost/vhost.h |2 +- 5 files changed, 6 insertions(+), 9 deletions

[net-next PATCH 6/6] macvtap: remove unused paramter in macvtap_do_read()

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- drivers/net/macvtap.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 4914d85..4a34bcb 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -819,7

[net-next PATCH 4/6] macvtap: adjust macvtap_skb_to_vnet_hdr() to be void

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- drivers/net/macvtap.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index d271fb4..f599c47 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -588,7

[net-next PATCH 0/6] some cleanups

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Since net-next is open now, it's time to post them out again. Zhi Yong Wu (6): vhost: remove the dead branch vhost: adjust vhost_dev_init() to be void macvtap: remove the dead branch macvtap: adjust macvtap_skb_to_vnet_hdr() to be void macvtap: update file cu

[net-next PATCH 1/6] vhost: remove the dead branch

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Since vhost_dev_init() forever return 0, some branches are never run, therefore need to be removed. Signed-off-by: Zhi Yong Wu Acked-by: Michael S. Tsirkin --- drivers/vhost/net.c |5 - drivers/vhost/scsi.c |5 - drivers/vhost/test.c |5 - 3 files

[net-next PATCH 3/6] macvtap: remove the dead branch

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- drivers/net/macvtap.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 9093004..d271fb4 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -779,8 +779,6

Re: [PATCH 1/2] macvtap: update file current position

2013-12-05 Thread Zhi Yong Wu
On Fri, Dec 6, 2013 at 9:44 AM, David Miller wrote: > From: Zhi Yong Wu > Date: Wed, 4 Dec 2013 17:29:00 +0800 > >> From: Zhi Yong Wu >> >> Signed-off-by: Zhi Yong Wu > > The tun driver seems to have the same exact bug, please if you are going > to fix one

[net-next PATCHv2 0/8] net: some cleanups

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Since net-next is open now, it's time to post them out again. Zhi Yong Wu (8): vhost: remove the dead branch vhost: adjust vhost_dev_init() to be void macvtap: remove the dead branch macvtap: adjust macvtap_skb_to_vnet_hdr() to be void macvtap: update file cu

[net-next PATCHv2 4/8] macvtap: adjust macvtap_skb_to_vnet_hdr() to be void

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- drivers/net/macvtap.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index d271fb4..f599c47 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -588,7

[net-next PATCHv2 5/8] macvtap: update file current position

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- drivers/net/macvtap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index f599c47..4914d85 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -872,6 +872,8

[net-next PATCHv2 2/8] vhost: adjust vhost_dev_init() to be void

2013-12-05 Thread Zhi Yong Wu
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu Acked-by: Michael S. Tsirkin --- drivers/vhost/net.c |4 ++-- drivers/vhost/scsi.c |2 +- drivers/vhost/test.c |3 +-- drivers/vhost/vhost.c |4 +--- drivers/vhost/vhost.h |2 +- 5 files changed, 6 insertions(+), 9 deletions

<    1   2   3   >