mirror of
https://github.com/ceph/ceph
synced 2025-01-03 17:42:36 +00:00
osd: switching dispatch_running to be a counter
Now it works with multiple messengers dispatching.
This commit is contained in:
parent
c7d2352971
commit
2fbf1e9f5b
@ -1846,9 +1846,9 @@ bool OSD::ms_dispatch(Message *m)
|
||||
{
|
||||
// lock!
|
||||
osd_lock.Lock();
|
||||
dispatch_running = true;
|
||||
++dispatch_running;
|
||||
_dispatch(m);
|
||||
dispatch_running = false;
|
||||
--dispatch_running;
|
||||
do_waiters();
|
||||
osd_lock.Unlock();
|
||||
return true;
|
||||
|
@ -130,7 +130,7 @@ protected:
|
||||
}
|
||||
};
|
||||
|
||||
bool dispatch_running;
|
||||
int dispatch_running;
|
||||
|
||||
void open_logger();
|
||||
void start_logger();
|
||||
|
Loading…
Reference in New Issue
Block a user