Re: [Devel] [PATCH 2/2] fuse kio: Differ fuse_pcs_kdirect_claim_op() return values

2018-10-11 Thread Pavel Butsykin
On 11.10.2018 18:00, Kirill Tkhai wrote: > Fail open in case of fuse_get_req() was failed, > and leave it successful in case of vstorage-mount > said we can't claim file by kio (e.g., file will > be served by userspace). > > Signed-off-by: Kirill Tkhai Reviewed-by: Pavel Butsykin > --- >

Re: [Devel] [PATCH 1/2] fuse kio: Do not try to populate fuse_inode::private on second open

2018-10-11 Thread Pavel Butsykin
On 11.10.2018 18:00, Kirill Tkhai wrote: > Introduce flag to mark files served by userspace. > It helps kio to understand it's not needed to send > a request to userspace, when private is NULL. > Introducing some special value to encode inodes, > served in userspace, (for example ~0UL), does not >

[Devel] [PATCH 2/2] fuse kio: Differ fuse_pcs_kdirect_claim_op() return values

2018-10-11 Thread Kirill Tkhai
Fail open in case of fuse_get_req() was failed, and leave it successful in case of vstorage-mount said we can't claim file by kio (e.g., file will be served by userspace). Signed-off-by: Kirill Tkhai --- fs/fuse/kio/pcs/pcs_fuse_kdirect.c |4 ++-- 1 file changed, 2 insertions(+), 2

[Devel] [PATCH 1/2] fuse kio: Do not try to populate fuse_inode::private on second open

2018-10-11 Thread Kirill Tkhai
Introduce flag to mark files served by userspace. It helps kio to understand it's not needed to send a request to userspace, when private is NULL. Introducing some special value to encode inodes, served in userspace, (for example ~0UL), does not look better, since it makes !fi->private checks more

[Devel] [PATCH] cbt: bitmap corruption caused by ipi

2018-10-11 Thread Vasiliy Averin
IPI generated by cbt_flush_cache() can interrupt blk_cbt_add() in "bad" places and lead to bitmap corruption. CPU A CPU B blk_cbt_add() ... cbt_flush_cache() old = *ex;submit IPI ex->start = start; interrupt

[Devel] [patch] cbt: selfdeadlock in __blk_cbt_set()

2018-10-11 Thread Vasiliy Averin
__blk_cbt_set() can be interrupted by IPI __cbt_flush_cpu_cache() that will be cycled forever in spin_lock_page() because page was already locked by interrupted process. #5 [880071e89f50] nmi at 81569781 [exception RIP: __blk_cbt_set+133] RIP: 812b1a35 RSP:

[Devel] [PATCH] cbt: bitmap corruption caused by ipi

2018-10-11 Thread Vasiliy Averin
IPI generated by cbt_flush_cache() can interrupt blk_cbt_add() in "bad" places and lead to bitmap corruption. CPU A CPU B blk_cbt_add() ... cbt_flush_cache() old = *ex;submit IPI ex->start = start; interrupt

[Devel] [PATCH RHEL7 COMMIT] fuse kio: Return possibility to handle files served in userspace

2018-10-11 Thread Konstantin Khorenko
The commit is pushed to "branch-rh7-3.10.0-862.14.4.vz7.72.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-862.14.4.vz7.72.7 --> commit 8c3ae1c2abf83c3bed189a6835529ecce4e84999 Author: Kirill Tkhai Date: Thu Oct 11 11:19:32 2018 +0300 fuse kio: