In
69321bf, EAGAIN changed behaviour to block indefinitely
rather than returning to user. Change the return for
`osd pool set` operations that are blocked by creating PGs
to return EBUSY instead of EAGAIN, so that they are excepted
from this blocking behaviour.
Signed-off-by: John Spray <john.spray@inktank.com>
++i) {
if (i->m_pool == static_cast<uint64_t>(pool)) {
ss << "currently creating pgs, wait";
- return -EAGAIN;
+ return -EBUSY;
}
}
p.set_pg_num(n);
++i) {
if (i->m_pool == static_cast<uint64_t>(pool)) {
ss << "currently creating pgs, wait";
- return -EAGAIN;
+ return -EBUSY;
}
}
p.set_pgp_num(n);