[stgt] [BUG FIX][PATCH] semop up failed.
Hirokazu Takahashi
taka at valinux.co.jp
Mon Sep 27 15:33:21 CEST 2010
Hi,
The tgt logger sometimes leaves a message "semop up failed."
I think the reason is that the sleeping period in function dolog()
is too short when it finds a contention on accessing the logging buffer.
I guess the intention of this code will be "to wait 10 msec", not "to wait
10 usec."
Am I right?
Thank you,
Hirokazu Takahashi.
Signed-off-by: Hirokazu Takahashi <taka at valinux.co.jp>
--- log.c 2010-08-27 07:58:10.000000000 +0900
+++ log.c.NEW 2010-09-15 06:56:41.000000000 +0900
@@ -259,7 +259,7 @@ static void dolog(int prio, const char *
if (la) {
ts.tv_sec = 0;
- ts.tv_nsec = 10000;
+ ts.tv_nsec = 10000000;
ops.sem_num = 0;
ops.sem_flg = 0;
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list