Re: [Devel] [PATCH 0/3] Fuse KIO: clanup fuse ktrace messages
On 12/05/2018 09:03 PM, Pavel Butsykin wrote: > #VSTOR-18383 > > Pavel Butsykin (3): > fs/fuse kio: bring fuse ktraces to a common view > fs/fuse kio: disable duplication FUSE_K* messages to debugfs by > default > fs/fuse kio: make it possible to enable TRACE/DTRACE in the release > kernel > > fs/fuse/kio/pcs/fuse_ktrace.h | 6 ++ > fs/fuse/kio/pcs/log.h | 10 +++--- > fs/fuse/kio/pcs/pcs_cs.c | 2 +- > fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 14 ++ > fs/fuse/kio/pcs/pcs_map.c | 2 +- > fs/fuse/kio/pcs/pcs_req.c | 2 +- > fs/fuse/kio/pcs/pcs_rpc.c | 10 +- > 7 files changed, 27 insertions(+), 19 deletions(-) > Ack ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel
Re: [Devel] [PATCH 0/3] Fuse KIO: clanup fuse ktrace messages
Pavel, Please answer on patchset below > On 21 Dec 2018, at 18:13, Pavel Butsykin wrote: > > ping > > On 05.12.2018 21:03, Pavel Butsykin wrote: >> #VSTOR-18383 >> >> Pavel Butsykin (3): >> fs/fuse kio: bring fuse ktraces to a common view >> fs/fuse kio: disable duplication FUSE_K* messages to debugfs by >> default >> fs/fuse kio: make it possible to enable TRACE/DTRACE in the release >> kernel >> >> fs/fuse/kio/pcs/fuse_ktrace.h | 6 ++ >> fs/fuse/kio/pcs/log.h | 10 +++--- >> fs/fuse/kio/pcs/pcs_cs.c | 2 +- >> fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 14 ++ >> fs/fuse/kio/pcs/pcs_map.c | 2 +- >> fs/fuse/kio/pcs/pcs_req.c | 2 +- >> fs/fuse/kio/pcs/pcs_rpc.c | 10 +- >> 7 files changed, 27 insertions(+), 19 deletions(-) >> ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel
Re: [Devel] [PATCH 0/3] Fuse KIO: clanup fuse ktrace messages
ping On 05.12.2018 21:03, Pavel Butsykin wrote: > #VSTOR-18383 > > Pavel Butsykin (3): >fs/fuse kio: bring fuse ktraces to a common view >fs/fuse kio: disable duplication FUSE_K* messages to debugfs by > default >fs/fuse kio: make it possible to enable TRACE/DTRACE in the release > kernel > > fs/fuse/kio/pcs/fuse_ktrace.h | 6 ++ > fs/fuse/kio/pcs/log.h | 10 +++--- > fs/fuse/kio/pcs/pcs_cs.c | 2 +- > fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 14 ++ > fs/fuse/kio/pcs/pcs_map.c | 2 +- > fs/fuse/kio/pcs/pcs_req.c | 2 +- > fs/fuse/kio/pcs/pcs_rpc.c | 10 +- > 7 files changed, 27 insertions(+), 19 deletions(-) > ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel
Re: [Devel] [PATCH] fs/fuse kio: fix mapping dereference in a dead map
On 21.12.2018 15:34, Pavel Butsykin wrote: > MAP_ARGS() contains reference to struct pcs_map_entry::mapping, > which can be NULL if map is dead. > > #VSTOR-19267 > > Signed-off-by: Pavel Butsykin Reviewed-by: Kirill Tkhai > --- > fs/fuse/kio/pcs/pcs_map.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c > index 817c7d6a9379..ad31d1222da3 100644 > --- a/fs/fuse/kio/pcs/pcs_map.c > +++ b/fs/fuse/kio/pcs/pcs_map.c > @@ -1175,7 +1175,8 @@ void pcs_map_complete(struct pcs_map_entry *m, struct > pcs_ioc_getmap *omap) > return; > > error: > - TRACE(" map error: %d for " MAP_FMT "\n", error.value, MAP_ARGS(m)); > + TRACE("map error: %d, m:%p, index:%lu, state:%x\n", error.value, m, > + m->index, m->state); > BUG_ON(!pcs_if_error()); > > m->state &= ~PCS_MAP_RESOLVING; > ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel
[Devel] [PATCH] fs/fuse kio: fix mapping dereference in a dead map
MAP_ARGS() contains reference to struct pcs_map_entry::mapping, which can be NULL if map is dead. #VSTOR-19267 Signed-off-by: Pavel Butsykin --- fs/fuse/kio/pcs/pcs_map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c index 817c7d6a9379..ad31d1222da3 100644 --- a/fs/fuse/kio/pcs/pcs_map.c +++ b/fs/fuse/kio/pcs/pcs_map.c @@ -1175,7 +1175,8 @@ void pcs_map_complete(struct pcs_map_entry *m, struct pcs_ioc_getmap *omap) return; error: - TRACE(" map error: %d for " MAP_FMT "\n", error.value, MAP_ARGS(m)); + TRACE("map error: %d, m:%p, index:%lu, state:%x\n", error.value, m, + m->index, m->state); BUG_ON(!pcs_if_error()); m->state &= ~PCS_MAP_RESOLVING; -- 2.15.1 ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel