]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSD: wake_pg_waiters after dropping pg lock 2063/head
authorSamuel Just <sam.just@inktank.com>
Tue, 1 Jul 2014 18:04:51 +0000 (11:04 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 1 Jul 2014 18:11:30 +0000 (11:11 -0700)
commitf8c88a4bbeb0c62f7fdbcc91a3d760fcebaef6a2
tree3765b730361bd931b63e509b2c3c2484ab16f2cf
parent1eca89df3586e07409773ff6797095bfc6ec2dcc
OSD: wake_pg_waiters after dropping pg lock

Otherwise, we dispatch_session_waiting while still holding the pg lock,
which is obviously wrong.  Unfortunately, this places an additional
burden on any user of _create_lock_pg, but I think it's unavoidable
since that method must atomically add the pg to the map and lock it.

Fixes: #8961
Introduced in:
  25466839589813047c975e44e67e14f34e32139e
  ecda2fef8ce982df3581a3b47ba74ae581d82479
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.cc
src/osd/OSD.h