How do I safely use direct IO while forking in a multi-threaded application?

Updated -

Issue

How do I safely use direct IO while forking in a multi-threaded application?

If the following conditions are met, the subsequent associated copy is not properly synchronized:

  • (a) a thread within a multi-threaded process having direct IO outstanding to a buffer with a size that is not a multiple of the page size and/or is not a page-aligned memory address,...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.