]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: do not block when updating osdmap superblock features 1631/head
authorSage Weil <sage@inktank.com>
Wed, 9 Apr 2014 00:28:54 +0000 (17:28 -0700)
committerSage Weil <sage@inktank.com>
Wed, 9 Apr 2014 00:28:54 +0000 (17:28 -0700)
commit22a0c1fd5e44e22930b7316cdb9c9d0f531c9d95
tree06cc0c621e4bef66ecce237c520f90bec9f9da74
parent43f0519b98c08d94aa6a2f6cd1733efeb2940424
osd: do not block when updating osdmap superblock features

We are holding osd_lock in check_osdmap_features, which means we cannot
block while waiting for filestore operations to flush/apply without
risking deadlock.

The important constraint is that we commit that the feature is enabled
before also commiting anything that utilizes sharded objects.  The normal
commit sequencing does that already; there is no reason to block here.

Fixes: #8045
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc