mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Detecting RWF_NOWAIT support
@ 2017-12-14 17:38 Avi Kivity
  2017-12-14 19:15 ` Goldwyn Rodrigues
  0 siblings, 1 reply; 8+ messages in thread
From: Avi Kivity @ 2017-12-14 17:38 UTC (permalink / raw)
  To: Goldwyn Rodrigues, linux-kernel, linux-xfs

I'm looking to add support for RWF_NOWAIT within a linux-aio iocb. 
Naturally, I need to detect at runtime whether the kernel support 
RWF_NOWAIT or not.


The only method I could find was to issue an I/O with RWF_NOWAIT set, 
and look for errors. This is somewhat less than perfect:

  - from the error, I can't tell whether RWF_NOWAIT was the problem, or 
something else. If I enable a number of new features, I have to run 
through all combinations to figure out which ones are supported and 
which are not.

  - RWF_NOWAIT support is per-filesystem, so I can't just remember not 
to enable RWF_NOWAIT globally, I have to track it per file.


Did I miss another method of detecting RWF_NOWAIT?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-12-18  7:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-14 17:38 Detecting RWF_NOWAIT support Avi Kivity
2017-12-14 19:15 ` Goldwyn Rodrigues
2017-12-16 14:49   ` Avi Kivity
2017-12-16 18:03     ` vcaputo
2017-12-16 18:12       ` vcaputo
2017-12-17  7:09         ` Avi Kivity
2017-12-18  3:28     ` Goldwyn Rodrigues
2017-12-18  7:38       ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®