* [Drbd-dev] drbd0: [drbd0_receiver/5740] sock_sendmsg time expired, ko = 4294967294
@ 2007-06-11 1:39 Montrose, Ernest
2007-06-12 14:14 ` Philipp Reisner
0 siblings, 1 reply; 3+ messages in thread
From: Montrose, Ernest @ 2007-06-11 1:39 UTC (permalink / raw)
To: drbd-dev
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
Hi all,
It seems that the mdev->ko_count counter is going negative as evidenced by the following message:
drbd0: [drbd0_receiver/5740] sock_sendmsg time expired, ko = 4294967294
Note the rather large ko value.
STATIC we_should_drop_the_connection(drbd_dev *mdev, struct socket *sock) is the place we decrement this unconditionnaly. Should at least be this:
Index: drbd/drbd_main.c
===================================================================
--- drbd/drbd_main.c (revision 14981)
+++ drbd/drbd_main.c (working copy)
@@ -1549,7 +1549,7 @@
if (drop_it)
return TRUE;
- drop_it = !--mdev->ko_count;
+ drop_it = !mdev->ko_count || !--mdev->ko_count;
if ( !drop_it ) {
ERR("[%s/%d] sock_sendmsg time expired, ko = %u\n",
current->comm, current->pid, mdev->ko_count);
[-- Attachment #2: Type: text/html, Size: 1734 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Drbd-dev] drbd0: [drbd0_receiver/5740] sock_sendmsg time expired, ko = 4294967294
2007-06-11 1:39 [Drbd-dev] drbd0: [drbd0_receiver/5740] sock_sendmsg time expired, ko = 4294967294 Montrose, Ernest
@ 2007-06-12 14:14 ` Philipp Reisner
0 siblings, 0 replies; 3+ messages in thread
From: Philipp Reisner @ 2007-06-12 14:14 UTC (permalink / raw)
To: drbd-dev
On Monday 11 June 2007 03:39:47 Montrose, Ernest wrote:
> Hi all,
> It seems that the mdev->ko_count counter is going negative as evidenced by
> the following message: drbd0: [drbd0_receiver/5740] sock_sendmsg time
> expired, ko = 4294967294
>
This is intended this way. If you configure ko_count to zero it becomes
that very large integer with the first expiration of the timeout. I.e.
no drop of connection.
-Phil
--
: Dipl-Ing Philipp Reisner Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Vivenotgasse 48, 1120 Vienna, Austria http://www.linbit.com :
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [Drbd-dev] drbd0: [drbd0_receiver/5740] sock_sendmsg time expired, ko = 4294967294
@ 2007-06-12 14:23 Montrose, Ernest
0 siblings, 0 replies; 3+ messages in thread
From: Montrose, Ernest @ 2007-06-12 14:23 UTC (permalink / raw)
To: Philipp Reisner, drbd-dev
Phil,
OK..So it's a feature..Not a bug..:) Thanks for the clarification..
EM--
-----Original Message-----
From: drbd-dev-bounces@linbit.com [mailto:drbd-dev-bounces@linbit.com]
On Behalf Of Philipp Reisner
Sent: Tuesday, June 12, 2007 10:15 AM
To: drbd-dev@linbit.com
Subject: Re: [Drbd-dev] drbd0: [drbd0_receiver/5740] sock_sendmsg time
expired,ko = 4294967294
On Monday 11 June 2007 03:39:47 Montrose, Ernest wrote:
> Hi all,
> It seems that the mdev->ko_count counter is going negative as
evidenced by
> the following message: drbd0: [drbd0_receiver/5740] sock_sendmsg time
> expired, ko = 4294967294
>
This is intended this way. If you configure ko_count to zero it becomes
that very large integer with the first expiration of the timeout. I.e.
no drop of connection.
-Phil
--
: Dipl-Ing Philipp Reisner Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Vivenotgasse 48, 1120 Vienna, Austria http://www.linbit.com :
_______________________________________________
drbd-dev mailing list
drbd-dev@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-06-12 14:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11 1:39 [Drbd-dev] drbd0: [drbd0_receiver/5740] sock_sendmsg time expired, ko = 4294967294 Montrose, Ernest
2007-06-12 14:14 ` Philipp Reisner
-- strict thread matches above, loose matches on Subject: below --
2007-06-12 14:23 Montrose, Ernest
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.