aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJeff Layton <[email protected]>2019-04-15 12:00:42 -0400
committerIlya Dryomov <[email protected]>2019-04-23 21:37:54 +0200
commit1bcb344086f3ecf8d6705f6d708441baa823beb3 (patch)
treea74e633044deef292484f263c6ecba10e794d40d /tools/perf/scripts/python/export-to-postgresql.py
parent085b7755808aa11f78ab9377257e1dad2e6fa4bb (diff)
ceph: only use d_name directly when parent is locked
Ben reported tripping the BUG_ON in create_request_message during some performance testing. Analysis of the vmcore showed that the length of the r_dentry->d_name string changed after we allocated the buffer, but before we encoded it. build_dentry_path returns pointers to d_name in the common case of non-snapped dentries, but this optimization isn't safe unless the parent directory is locked. When it isn't, have the code make a copy of the d_name while holding the d_lock. Cc: [email protected] Reported-by: Ben England <[email protected]> Signed-off-by: Jeff Layton <[email protected]> Reviewed-by: "Yan, Zheng" <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions