Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 198801 Details for
Bug 278961
epoll_wait(..., -100) results in printk
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch
278961.rhel-4 (text/plain), 852 bytes, created by
Peter Staubach
on 2007-09-18 19:47:13 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Peter Staubach
Created:
2007-09-18 19:47:13 UTC
Size:
852 bytes
patch
obsolete
>--- linux-2.6.9/fs/eventpoll.c.org >+++ linux-2.6.9/fs/eventpoll.c >@@ -101,6 +101,9 @@ > /* Maximum number of poll wake up nests we are allowing */ > #define EP_MAX_POLLWAKE_NESTS 4 > >+/* Maximum msec timeout value storeable in a long int */ >+#define EP_MAX_MSTIMEO min(1000ULL * MAX_SCHEDULE_TIMEOUT / HZ, (LONG_MAX - 999ULL) / HZ) >+ > /* Macro to allocate a "struct epitem" from the slab cache */ > #define EPI_MEM_ALLOC() (struct epitem *) kmem_cache_alloc(epi_cache, SLAB_KERNEL) > >@@ -1479,7 +1482,7 @@ static int ep_poll(struct eventpoll *ep, > * and the overflow condition. The passed timeout is in milliseconds, > * that why (t * HZ) / 1000. > */ >- jtimeout = timeout == -1 || timeout > (MAX_SCHEDULE_TIMEOUT - 1000) / HZ ? >+ jtimeout = (timeout < 0 || timeout >= EP_MAX_MSTIMEO) ? > MAX_SCHEDULE_TIMEOUT: (timeout * HZ + 999) / 1000; > > retry:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278961
:
187791
| 198801