]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
CollectionIndex: Collection name is added to the access_lock name
authorSomnath Roy <somnath.roy@sandisk.com>
Mon, 18 Aug 2014 23:59:36 +0000 (16:59 -0700)
committerSage Weil <sage@redhat.com>
Mon, 25 Aug 2014 13:29:44 +0000 (06:29 -0700)
commit97b1916ec4bb3bcc50de04b005c2544586d09bb5
treed289526ad85e78d811aca662fc92f4b085facb32
parent0b1a4328bd0f745d967dce04c5289560254acfea
CollectionIndex: Collection name is added to the access_lock name

The CollectionIndex constructor is changed to accept the coll_t
so that the collection name can be used to form access_lock(RWLock)
name.This is needed otherwise lockdep will report a recursive lock error
and assert. lockdep needs unique lock names for each Index object.

Fixes: #9145
Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
(cherry picked from commit 615d2d904024526cc58557ee5250c2536a3cd5c8)
src/os/CollectionIndex.h
src/os/FlatIndex.h
src/os/LFNIndex.h