Return-Path: Received: from soda.linbit (unknown [10.9.9.55]) by mail09.linbit.com (LINBIT Mail Daemon) with ESMTP id 9EEDF106E0E3 for ; Sat, 25 Feb 2012 23:21:25 +0100 (CET) Resent-Message-ID: <20120225222123.GI28351@barkeeper1-xen.linbit> Received: from smtp.digdes.com (smtp.digdes.com [85.114.5.10]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail09.linbit.com (LINBIT Mail Daemon) with ESMTPS id EE85F106E0E3 for ; Fri, 24 Feb 2012 14:32:51 +0100 (CET) From: Apollonskiy Evgeniy To: Date: Fri, 24 Feb 2012 17:28:29 +0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_9B5RP2jWoDf24cg" Content-Transfer-Encoding: 7bit Message-ID: <201202241728.29238.apollonskiy.e@digdes.com> Subject: [Drbd-dev] ko-count overflow List-Id: Coordination of development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --Boundary-01=_9B5RP2jWoDf24cg Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, There is a strange code fragment in drbd_main.c: drop_it = !--mdev->ko_count; if (!drop_it) { dev_err(DEV, "[%s/%d] sock_sendmsg time expired, ko = %u\n", current->comm, current->pid, mdev->ko_count); request_ping(mdev); } Default value of ko_count is 0, so --mdev->ko_count will be equal to 4294967295 (ko_count is unsigned int). --Boundary-01=_9B5RP2jWoDf24cg Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

Hello,

 

There is a strange code fragment in drbd_main.c:

 

drop_it = !--mdev->ko_count;

if (!drop_it) {

dev_err(DEV, "[%s/%d] sock_sendmsg time expired, ko = %u\n",

current->comm, current->pid, mdev->ko_count);

request_ping(mdev);

}

 

Default value of ko_count is 0, so --mdev->ko_count will be equal to 4294967295 (ko_count is unsigned int).

--Boundary-01=_9B5RP2jWoDf24cg--