public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] aio_cancel/3-1: increase BUF_SIZE
@ 2012-04-11  8:40 Kang Kai
  2012-04-11 10:16 ` Caspar Zhang
  0 siblings, 1 reply; 3+ messages in thread
From: Kang Kai @ 2012-04-11  8:40 UTC (permalink / raw)
  To: ltp-list

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.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
---
 .../conformance/interfaces/aio_cancel/3-1.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c
index 5b09d47..ebaa468 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c
@@ -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;
-- 
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] [PATCH] aio_cancel/3-1: increase BUF_SIZE
  2012-04-11  8:40 [LTP] [PATCH] aio_cancel/3-1: increase BUF_SIZE Kang Kai
@ 2012-04-11 10:16 ` Caspar Zhang
  2012-04-11 11:30   ` Wanlong Gao
  0 siblings, 1 reply; 3+ messages in thread
From: Caspar Zhang @ 2012-04-11 10:16 UTC (permalink / raw)
  To: ltp-list

On 04/11/2012 04:40 PM, Kang Kai wrote:
> 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.
> 
> Signed-off-by: Kang Kai <kai.kang@windriver.com>
Reviewed-by: Caspar Zhang <caspar@casparzhang.com>

------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] [PATCH] aio_cancel/3-1: increase BUF_SIZE
  2012-04-11 10:16 ` Caspar Zhang
@ 2012-04-11 11:30   ` Wanlong Gao
  0 siblings, 0 replies; 3+ messages in thread
From: Wanlong Gao @ 2012-04-11 11:30 UTC (permalink / raw)
  To: Kang Kai; +Cc: ltp-list

On 04/11/2012 06:16 PM, Caspar Zhang wrote:

> On 04/11/2012 04:40 PM, Kang Kai wrote:
>> 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.
>>
>> Signed-off-by: Kang Kai <kai.kang@windriver.com>
> Reviewed-by: Caspar Zhang <caspar@casparzhang.com>


pushed, thanks all,

Wanlong Gao

> 
> ------------------------------------------------------------------------------
> 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
> Ltp-list@lists.sourceforge.net
> 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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2012-04-11 11:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-11  8:40 [LTP] [PATCH] aio_cancel/3-1: increase BUF_SIZE Kang Kai
2012-04-11 10:16 ` Caspar Zhang
2012-04-11 11:30   ` Wanlong Gao

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