Skip to content

Commit

Permalink
mds, osd: Fix missing locking for "dump_blocked_ops"
Browse files Browse the repository at this point in the history
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit be5bed8)

Conflicts:
	src/mds/MDSRank.cc (missing dump_blocked_ops in mds)
  • Loading branch information
dzafman committed Jul 12, 2016
1 parent d66c5b9 commit f278645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/osd/OSD.cc
Expand Up @@ -1692,6 +1692,7 @@ bool OSD::asok_command(string command, cmdmap_t& cmdmap, string format,
op_tracker.dump_ops_in_flight(f);
}
} else if (command == "dump_blocked_ops") {
RWLock::RLocker l(op_tracker.lock);
if (!op_tracker.tracking_enabled) {
ss << "op_tracker tracking is not enabled now, so no ops are tracked currently, even those get stuck. \
Please enable \"osd_enable_op_tracker\", and the tracker will start to track new ops received afterwards.";
Expand Down

0 comments on commit f278645

Please sign in to comment.