always drop GIL when performing block ops
Fixes: https://tracker.ceph.com/issues/42087
Signed-off-by: Kefu Chai <kchai@redhat.com>
derr << "Invalid args!" << dendl;
return nullptr;
}
+ PyThreadState *tstate = PyEval_SaveThread();
std::string final_key;
std::string value;
bool found = false;
final_key = what;
found = self->this_module->get_config(final_key, &value);
}
+ PyEval_RestoreThread(tstate);
if (found) {
dout(10) << __func__ << " " << final_key << " found: " << value
<< dendl;