[Drbd-dev] ko-count overflow

Lars Ellenberg lars.ellenberg at linbit.com
Sat Feb 25 23:21:04 CET 2012


On Fri, Feb 24, 2012 at 05:28:29PM +0400, Apollonskiy Evgeniy wrote:
> 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).

That is intentional.

Configuring "0" should be equivalent to "disabled",
but we still want the recurring log message with the "count down".

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com


More information about the drbd-dev mailing list