Project

General

Profile

Actions

Bug #38792

closed

return ETIMEDOUT if we meet a timeout in poll

Added by Yang Dongsheng about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
luminous,mimic,nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

We don't want to wait on uevent forever, but the return value
of polling in timeout is 0 rather than a negative value.

manpage of poll as below:

RETURN VALUE
On success, a positive number is returned; this is the number of structures which
have nonzero revents fields (in other words, those descriptors with events or errors reported).
A value of 0 indicates that the call timed out and no file descriptors were ready.
On error, -1 is returned, and errno is set appropriately.


Related issues 3 (0 open3 closed)

Copied to rbd - Backport #38975: luminous: return ETIMEDOUT if we meet a timeout in pollResolvedPrashant DActions
Copied to rbd - Backport #38976: mimic: return ETIMEDOUT if we meet a timeout in pollResolvedPrashant DActions
Copied to rbd - Backport #38977: nautilus: return ETIMEDOUT if we meet a timeout in pollResolvedPrashant DActions
Actions #1

Updated by Jason Dillaman about 5 years ago

  • Status changed from New to Fix Under Review
  • Backport set to luminous,mimic,nautilus
  • Pull request ID set to 27025
Actions #2

Updated by Ilya Dryomov about 5 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Nathan Cutler about 5 years ago

  • Copied to Backport #38975: luminous: return ETIMEDOUT if we meet a timeout in poll added
Actions #4

Updated by Nathan Cutler about 5 years ago

  • Copied to Backport #38976: mimic: return ETIMEDOUT if we meet a timeout in poll added
Actions #5

Updated by Nathan Cutler about 5 years ago

  • Copied to Backport #38977: nautilus: return ETIMEDOUT if we meet a timeout in poll added
Actions #6

Updated by Nathan Cutler almost 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF