Skip to contentSkip to conversation

aio_cancel/3-1: increase BUF_SIZE

PATCH In review Kang Kai 3 participants 3 messages Apr 11, 2012

lore
Share & tools
lore

Kang Kai

author
#0 lore raw

PATCH 1/1 aio_cancel/3-1: increase BUF_SIZE

When do aio_cancel, all the aio_write operations have finished on some platforms. That cause the case return UNRESOLVED. So increase the BUF_SIZE to delay aio_write finish that make one aio_write operation can be cancelled at least.

---
 .../conformance/interfaces/aio_cancel/3-1.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c +1 -1
index 5b09d47..ebaa468 100644
@@ -44,7 +44,7 @@
 #define TNAME "aio_cancel/3-1.c"
 
 #define BUF_NB		128
-#define BUF_SIZE	1024
+#define BUF_SIZE	(1024 * 1024)
 
 static volatile int countdown = BUF_NB;
 static volatile int canceled = 0;
Signature · 12 lines
1.7.5.4


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Kang Kai

When do aio_cancel, all the aio_write operations have finished on some platforms. That cause the case return UNRESOLVED. So increase the BUF_SIZE to delay aio_write finish that make one aio_write operation can be cancelled at least.

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Ltp-list mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#2 lore raw
Quoted 8 lines · Caspar Zhang
Quoted 6 lines · Kang Kai

When do aio_cancel, all the aio_write operations have finished on some platforms. That cause the case return UNRESOLVED. So increase the BUF_SIZE to delay aio_write finish that make one aio_write operation can be cancelled at least.

pushed, thanks all,

Wanlong Gao

Quoted 11 lines

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Ltp-list mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Ltp-list mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list