]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: allow greedy get_write() for ObjectContext locks
authorSage Weil <sage@redhat.com>
Tue, 22 Jul 2014 20:11:42 +0000 (13:11 -0700)
committerSage Weil <sage@redhat.com>
Fri, 1 Aug 2014 23:39:19 +0000 (16:39 -0700)
commit68651e9137df2b1034a5b470bbb2fc1d19d8debb
treeba318b0e020447b85680c54f8dc0b7d3dca78377
parenta2681c93fb30b912f653b596e27eb8b1bc5c6b78
osd: allow greedy get_write() for ObjectContext locks

There are several lockers that need to take a write lock
because there is an operation that is already in progress and
know it is safe to do so.  In particular, they need to skip
the starvation checks (op waiters, backfill waiting).

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 09626501d7a0ff964027fd7a534465b76bad23cb)
src/osd/osd_types.h