[Devel] [PATCH rh7] ploop: io_kaio: fix silly bug in kaio_complete_io_state()

2016-06-16 Thread Maxim Patlasov
It's useless to check for preq->req_rw & REQ_FUA after: preq->req_rw &= ~REQ_FUA; Signed-off-by: Maxim Patlasov --- drivers/block/ploop/io_kaio.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/block/ploop/io_kaio.c b/drivers/block/ploop/io_kaio.c index

[Devel] [PATCH rh7] ploop: fix counting bio_qlen

2016-06-16 Thread Maxim Patlasov
The commit ec1eeb868 (May 22 2015) ported "separate queue for discard bio" patch from RHEL6-based kernel incorrectly. Original patch stated clearly that if we want to decrement bio_discard_qlen, bio_qlen must not change: @@ -500,7 +502,7 @@ ploop_bio_queue(struct ploop_device * pl

Re: [Devel] [PATCH 3/3] ploop: fixup FORCE_{FLUSH,FUA} handling

2016-06-16 Thread Maxim Patlasov
On 06/16/2016 09:30 AM, Dmitry Monakhov wrote: Dmitry Monakhov writes: Maxim Patlasov writes: Dima, I agree that the ploop barrier code is broken in many ways, but I don't think the patch actually fixes it. I hope you would agree that

Re: [Devel] [PATCH 3/3] ploop: fixup FORCE_{FLUSH,FUA} handling

2016-06-16 Thread Dmitry Monakhov
Dmitry Monakhov writes: > Maxim Patlasov writes: > >> Dima, >> >> I agree that the ploop barrier code is broken in many ways, but I don't >> think the patch actually fixes it. I hope you would agree that >> completion of REQ_FUA guarantees only

Re: [Devel] [PATCH net-next 0/3] [RFC] netlink: prepare to dump and restore data from a receive queue

2016-06-16 Thread Cyrill Gorcunov
On Wed, Jun 15, 2016 at 12:09:18AM -0700, Andrey Vagin wrote: > CRIU can dump queued data for unix and tcp sockets, > now it's time for netlink sockets. > > Here are there questions. > * How to dump data from a receive queue > We can set peeking offset like we do for unix sockets. > > * How to

[Devel] [PATCH rh7] ve/device_cgroup: kill ACC_QUOTA permission

2016-06-16 Thread Andrey Ryabinin
This is a leftover from PCS6. Currently this code does absolutely nothing, so let's remove it. Signed-off-by: Andrey Ryabinin --- include/linux/fs.h | 1 - security/device_cgroup.c | 13 ++--- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git

[Devel] [PATCH rh7] ve/device_cgroup: allow to change device mount permission via cgroup

2016-06-16 Thread Andrey Ryabinin
Currently, in order to allow a Container to mount device, we call an ioctl(get_vzctlfd(), VZCTL_SETDEVPERMS, ) with S_IXUSR bit set. In fact, this ioctl() is just a wrapper around dev cgroup interface, which is very odd. Instead, lets allow to change mount permission via dev cgroup interface.

[Devel] [PATCH rh7] security: device_cgroup -- Allow manage devices in @pseudosuper state

2016-06-16 Thread Cyrill Gorcunov
When restoring containers with several disks it's more convenient to mount device first and the setup permissions needed. So for this sake we allow to escape device permissions testing inside VE only if @pseudosuper state enabled. https://jira.sw.ru/browse/PSBM-48421 CC: Vladimir Davydov

[Devel] [PATCH RHEL7 COMMIT] ve/sysctl: remove unused fs.ve-area-access-check, net.ipv4.tcp_max_tw*

2016-06-16 Thread Konstantin Khorenko
The commit is pushed to "branch-rh7-3.10.0-327.18.2.vz7.14.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-327.18.2.vz7.14.15 --> commit eda1f7c1b63c7ede41f0f85e62012698e307d757 Author: Pavel Tikhomirov Date: Thu Jun 16

Re: [Devel] [PATCH 3/3] ploop: fixup FORCE_{FLUSH,FUA} handling

2016-06-16 Thread Dmitry Monakhov
Maxim Patlasov writes: > Dima, > > I agree that the ploop barrier code is broken in many ways, but I don't > think the patch actually fixes it. I hope you would agree that > completion of REQ_FUA guarantees only landing that particular bio to the > disk; it says