Project

General

Profile

Actions

Bug #913

closed

krbd: handle race between notify and rbd device shutdown

Added by Sage Weil about 13 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The notify goes off in a work queue. Need to cancel event and drain that before closing down our device.

Actions #1

Updated by Sage Weil almost 13 years ago

  • Translation missing: en.field_story_points set to 2
  • Translation missing: en.field_position set to 1
  • Translation missing: en.field_position changed from 1 to 560
Actions #2

Updated by Sage Weil almost 13 years ago

  • Target version changed from v2.6.39 to v3.0
Actions #3

Updated by Sage Weil almost 13 years ago

  • Translation missing: en.field_position deleted (559)
  • Translation missing: en.field_position set to 1
  • Translation missing: en.field_position changed from 1 to 565
Actions #4

Updated by Sage Weil almost 13 years ago

  • Target version changed from v3.0 to v3.1
Actions #5

Updated by Sage Weil over 12 years ago

  • Target version changed from v3.1 to v3.2
Actions #6

Updated by Sage Weil over 12 years ago

  • Target version deleted (v3.2)
Actions #7

Updated by Sage Weil over 12 years ago

  • Translation missing: en.field_position deleted (571)
  • Translation missing: en.field_position set to 13
Actions #8

Updated by Sage Weil almost 12 years ago

  • Project changed from Linux kernel client to rbd
  • Category deleted (rbd)
Actions #9

Updated by Josh Durgin almost 12 years ago

  • Subject changed from rbd: handle race between notify and rbd device shutdown to krbd: handle race between notify and rbd device shutdown
Actions #10

Updated by Ian Colle about 11 years ago

  • Assignee set to Alex Elder
Actions #11

Updated by Alex Elder about 11 years ago

  • Status changed from New to Resolved

This is very old. And--provided I understand it--it is resolved
in the current rbd code.

When a mapped rbd image is created it sets up rbd_dev_release
as the function to call when the last reference to the device
is dropped. That gets called when the last reference to a
block device gets dropped.

The first thing rbd_dev_release() does is synchronously drop
the watch request on the header object. So before any other
of this final teardown activity proceeds the watch request
will be gone.

And I think any incoming notify requests that might have
been sent prior to that will be done by then, and we won't
get them thereafter.

So... I'm going to call this resolved.

Actions

Also available in: Atom PDF