Project

General

Profile

Actions

Bug #21566

closed

OSDService::recovery_need_sleep read+updated without locking

Added by Greg Farnum over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Scrub/Repair
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
OSD
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Unless I'm misreading this, OSD::do_recovery() is invoked from the ShardedOpQueue without holding any locks on global OSD state. And then we both read and edit the recovery_needs_sleep member without holding the recovery_request_lock or anything else that prevents it from being handled by multiple threads?`


Related issues 1 (0 open1 closed)

Copied to RADOS - Backport #21697: luminous: OSDService::recovery_need_sleep read+updated without lockingResolvedShinobu KinjoActions
Actions #1

Updated by Neha Ojha over 6 years ago

  • Status changed from New to Fix Under Review

https://github.com/ceph/ceph/pull/18022 should take care of this.

Actions #2

Updated by Kefu Chai over 6 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Nathan Cutler over 6 years ago

  • Backport set to luminous
Actions #4

Updated by Nathan Cutler over 6 years ago

  • Copied to Backport #21697: luminous: OSDService::recovery_need_sleep read+updated without locking added
Actions #5

Updated by Nathan Cutler over 6 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF