Skip to content

Commit fd23310

Browse files
fix: disable rwf_no_wait
It's not safe to always enable it as it might not be supported. Signed-off-by: Tiago Castro <[email protected]>
1 parent 66413f1 commit fd23310

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

module/bdev/aio/bdev_aio.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
#include <libaio.h>
2828
#endif
2929

30+
/* It's not safe to always assume RWF_NOWAIT is supported by a block device.
31+
* During testing sometimes loop devices yield -EAGAIN forever...
32+
*/
33+
#undef RWF_NOWAIT
34+
3035
struct bdev_aio_io_channel {
3136
uint64_t io_inflight;
3237
#ifdef __FreeBSD__

0 commit comments

Comments
 (0)