[Qemu-devel] [PATCH 2/7] 9p: v9fs new readpages.

2016-12-12 Thread edward . shishkin
From: Eduard Shishkin Modify v9fs private ->readpages() method of address_space operations for merging pages into long 9p messages. Signed-off-by: Eduard Shishkin --- fs/9p/vfs_addr.c | 156 ++- 1 file changed, 155 insertions(+), 1 deletion(-

[Qemu-devel] [PATCH 6/7] 9p: v9fs fix readpages writepages contexts allocation

2016-12-12 Thread edward . shishkin
From: Eduard Shishkin Use GFP_KERNEL instead of GFP_USER when allocating buffers for readpages/writepages contexts. Signed-off-by: Eduard Shishkin --- fs/9p/v9fs.c | 2 +- fs/9p/vfs_addr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c in

[Qemu-devel] [PATCH 7/7] 9p: v9fs fix calculation of max number of merged pages

2016-12-12 Thread edward . shishkin
From: Eduard Shishkin Don't merge too many pages when composing a 9p message because: . it doesn't lead to essential performance improvement; . to not allow user space to allocate big amount of kernel memory. We use a limit of 256K (for total size of all pages merged per message), as larger valu

[Qemu-devel] [PATCH 3/7] 9p: v9fs fix ifnullfree.cocci warnings

2016-12-12 Thread edward . shishkin
From: kbuild test robot fs/9p/v9fs.c:318:2-7: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values. fs/9p/v9fs.c:320:2-7: WARNING: NULL check before

[Qemu-devel] [PATCH 4/7] 9p: v9fs fix odd_ptr_err.cocci warnings

2016-12-12 Thread edward . shishkin
From: kbuild test robot fs/9p/vfs_super.c:145:6-12: inconsistent IS_ERR and PTR_ERR on line 146. PTR_ERR should access the value just tested by IS_ERR Semantic patch information: There can be false positives in the patch case, where it is the call to IS_ERR that is wrong. Generated by: scri

[Qemu-devel] [PATCH 1/7] 9p: v9fs add writepages.

2016-12-12 Thread edward . shishkin
From: Eduard Shishkin Add a v9fs private ->writepages() method of address_space operations for merging pages into long 9p messages. Signed-off-by: Eduard Shishkin --- fs/9p/v9fs.c | 46 +++ fs/9p/v9fs.h | 22 +++- fs/9p/vfs_addr.c | 357

[Qemu-devel] [RFC][PATCH 0/7] 9p: v9fs read and write speedup - V2

2016-12-12 Thread Edward Shishkin
Hello everyone, Version 2 of the patch-series contains cleanups and bug-fixes. The patches 1, 2 remain unchanged. The patches 3, 4, 5 are cleanups suggested by Fengguang Wu. The patches 6, 7 are fixups for bugs found by Alexander Graf. Any comments, suggestions are welcome as usual. Thanks, Edw

[Qemu-devel] [PATCH 5/7] 9p: v9fs fix semicolon.cocci warnings

2016-12-12 Thread edward . shishkin
From: kbuild test robot fs/9p/vfs_addr.c:425:3-4: Unneeded semicolon fs/9p/vfs_addr.c:458:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Signed-off-by: Fengguang Wu Signed-off-by: Eduard Shishkin --- fs/9p/vfs_addr.c | 4 ++-- 1 fil

Re: [Qemu-devel] [PATCH 2/2] 9p: v9fs new readpages.

2016-12-09 Thread Edward Shishkin
Hello Alexander, Thank you for the comments. Please, find my answers below. On 10/25/2016 04:13 PM, Alexander Graf wrote: On 10/10/2016 07:24 PM, Edward Shishkin wrote: Modify v9fs private ->readpages() method of address_space operations for merging pages into long 9p messages. Signed-

Re: [Qemu-devel] [PATCH 1/2] 9p: v9fs add writepages.

2016-12-09 Thread Edward Shishkin
On 10/25/2016 04:01 PM, Alexander Graf wrote: On 10/10/2016 07:24 PM, Edward Shishkin wrote: Add a v9fs private ->writepages() method of address_space operations for merging pages into long 9p messages. Signed-off-by: Edward Shishkin --- fs/9p/v9fs.c | 46 +++ fs/9p/v9f

[Qemu-devel] [PATCH 1/2] 9p: v9fs add writepages.

2016-10-10 Thread Edward Shishkin
Add a v9fs private ->writepages() method of address_space operations for merging pages into long 9p messages. Signed-off-by: Edward Shishkin --- fs/9p/v9fs.c | 46 +++ fs/9p/v9fs.h | 22 +++- fs/9p/vfs_addr.c | 357 ++ fs

[Qemu-devel] [RFC][PATCH 0/2] 9p: v9fs read and write speedup

2016-10-10 Thread Edward Shishkin
Hello everyone, The progress in virtualization and cloud technologies has resulted in a popularity of file sets shared on the host machines by Plan 9 File Protocol (the sharing setup is also known as VirtFS). Another sharing setup which uses NFS protocol is less popular because of number of reaso

[Qemu-devel] [PATCH 2/2] 9p: v9fs new readpages.

2016-10-10 Thread Edward Shishkin
Modify v9fs private ->readpages() method of address_space operations for merging pages into long 9p messages. Signed-off-by: Edward Shishkin --- fs/9p/vfs_addr.c | 156 ++- 1 file changed, 155 insertions(+), 1 deletion(-) diff --git a/fs