[Devel] [PATCH] fs/fuse kio: fix getting a non-existent pcs inode in kpcs_kill_requests()

2019-03-26 Thread Pavel Butsykin
Some files may not have pcs inode, so it will be safer to check for !fi->private before using it. Signed-off-by: Pavel Butsykin --- fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c

[Devel] [PATCH RHEL7 COMMIT] Revert "ploop: Remove excess variable"

2019-03-26 Thread Konstantin Khorenko
The commit is pushed to "branch-rh7-3.10.0-957.10.1.vz7.85.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-957.10.1.vz7.85.3 --> commit 855b630cf3d5afe7c96c230b1958d0c02ffd6ae6 Author: Kirill Tkhai Date: Tue Mar 26 12:36:59 2019 +0300 Revert

[Devel] [PATCH RH7] ve: don't hide cgroup mount root from pseudosuper

2019-03-26 Thread Pavel Tikhomirov
Will need it to check mouninfo persists at the late restore, where the root task is inside ve. https://jira.sw.ru/browse/PSBM-86686 Signed-off-by: Pavel Tikhomirov --- kernel/cgroup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index

[Devel] [PATCH RHEL7 COMMIT] fs/fuse kio: fix double free of pfc in process_pcs_init_reply()

2019-03-26 Thread Konstantin Khorenko
The commit is pushed to "branch-rh7-3.10.0-957.10.1.vz7.85.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-957.10.1.vz7.85.3 --> commit 57a6200cbb664031506df3b2828f34b469e8d333 Author: Pavel Butsykin Date: Tue Mar 26 12:49:03 2019 +0300 fs/fuse

[Devel] [PATCH 1/3] Revert "fs/fuse kio: add warning about jumbo chunks"

2019-03-26 Thread Pavel Butsykin
This reverts commit afb8d534110dbe203e4ae6385cef79b38c9e4771. Signed-off-by: Pavel Butsykin --- fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 3 --- fs/fuse/kio/pcs/pcs_mds_prot.h | 2 -- 2 files changed, 5 deletions(-) diff --git a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c

[Devel] [PATCH 2/3] fs/fuse kio: sync pcs_mds_sys_info struct

2019-03-26 Thread Pavel Butsykin
For some reason pcs_mds_sys_info structure is different in the kernel and userspace. Let's synchronize it to avoid inaccuracies and discrepancies in the future. Signed-off-by: Pavel Butsykin --- fs/fuse/kio/pcs/pcs_client_types.h | 6 +++--- fs/fuse/kio/pcs/pcs_cluster.c | 8

[Devel] [PATCH 0/3] fix jumbo chunk warning

2019-03-26 Thread Pavel Butsykin
Initially the warning was added incorrectly due to unsynchronization of pcs_mds_sys_info structure with the userspace client. Let's sync the structure and fix that. Pavel Butsykin (3): Revert "fs/fuse kio: add warning about jumbo chunks" fs/fuse kio: sync pcs_mds_sys_info struct fs/fuse

[Devel] [PATCH 3/3] fs/fuse kio: add warning about jumbo chunks

2019-03-26 Thread Pavel Butsykin
KIO doesn't support jumbo chunks yet, so all requests to jumbo chunks are silently redirected to user-space. It will be useful to see a message about this until support has been added to KIO. Signed-off-by: Pavel Butsykin --- fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 3 +++ 1 file changed, 3

[Devel] [PATCH 06/10] ploop: Introduce data_off_in_clusters() helper

2019-03-26 Thread Kirill Tkhai
Signed-off-by: Kirill Tkhai --- drivers/block/ploop/fmt_ploop1.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/block/ploop/fmt_ploop1.c b/drivers/block/ploop/fmt_ploop1.c index eea15aac8790..370aa6369a8a 100644 --- a/drivers/block/ploop/fmt_ploop1.c +++

[Devel] [PATCH 02/10] ploop: Make submit_alloc() return int value

2019-03-26 Thread Kirill Tkhai
-1 is error; 0 means this service preq is skipped; 1 is block was allocated Signed-off-by: Kirill Tkhai --- drivers/block/ploop/io_direct.c |6 -- drivers/block/ploop/io_kaio.c | 11 ++- include/linux/ploop/ploop.h |2 +- 3 files changed, 11 insertions(+), 8

[Devel] [PATCH 01/10] ploop: Export map defines to separate header file

2019-03-26 Thread Kirill Tkhai
Signed-off-by: Kirill Tkhai --- drivers/block/ploop/fmt_ploop1.c |4 +-- drivers/block/ploop/map.c| 52 +-- drivers/block/ploop/map.h| 56 ++ 3 files changed, 58 insertions(+), 54 deletions(-) create

[Devel] [PATCH 05/10] ploop: Prohibit PLOOP_IOC_UPDATE_INDEX on singular list

2019-03-26 Thread Kirill Tkhai
Add debug check to not miss a moment userspace decides to change its behavior. Signed-off-by: Kirill Tkhai --- drivers/block/ploop/dev.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c index

[Devel] [PATCH 04/10] ploop: Prohibit discard ioctls

2019-03-26 Thread Kirill Tkhai
Prohibit maintaince mode related ioctls. Signed-off-by: Kirill Tkhai --- drivers/block/ploop/dev.c | 10 ++ drivers/block/ploop/discard.c |6 ++ 2 files changed, 16 insertions(+) diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c index

[Devel] [PATCH 00/10] ploop: Discard with zeroing of ploop1 indexes support

2019-03-26 Thread Kirill Tkhai
--- Kirill Tkhai (10): ploop: Export map defines to separate header file ploop: Make submit_alloc() return int value ploop: Introduce ploop_submit_alloc() helper ploop: Prohibit discard ioctls ploop: Prohibit PLOOP_IOC_UPDATE_INDEX on singular list ploop:

[Devel] [PATCH 08/10] ploop: Zero indexes on discard

2019-03-26 Thread Kirill Tkhai
Shitch preq into PLOOP_E_DATA_WBI state to continue execution after discard's write is finished. Zero index in that stage. Signed-off-by: Kirill Tkhai --- drivers/block/ploop/dev.c|5 - drivers/block/ploop/fmt_ploop1.c |5 + 2 files changed, 9 insertions(+), 1

[Devel] [PATCH 10/10] ploop: Populate and maintain holes bitmap

2019-03-26 Thread Kirill Tkhai
Holes bitmap is needed for allocation of next free cluster. Otherwise we don't know, where cluster number should be taken. TODO: Flag to handle broken allocs (set bit back) Signed-off-by: Kirill Tkhai --- drivers/block/ploop/fmt_ploop1.c | 199 +-

[Devel] [PATCH 07/10] ploop: Add .complete_merge method

2019-03-26 Thread Kirill Tkhai
It will be used to reallocated holes bitmap after merge. Signed-off-by: Kirill Tkhai --- drivers/block/ploop/dev.c | 17 - drivers/block/ploop/io_direct_map.c |2 ++ include/linux/ploop/ploop.h |1 + 3 files changed, 15 insertions(+), 5 deletions(-)

[Devel] [PATCH 09/10] ploop: Fallocate cluster in cached_submit() during hole reuse

2019-03-26 Thread Kirill Tkhai
__map_extent_bmap() is for raw format, when we don't have information about presence of a cluster. Ploop1 must allocate all the space in beginning of cached_submit() function. Otherwise, we can't control what is going on. Signed-off-by: Kirill Tkhai --- drivers/block/ploop/io_direct.c |