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
> ---
>
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
>
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
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
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
__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:
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
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: