Project

General

Profile

Bug #1313 » txg.c.patch

txg_delay() overflow bugfix - Martin Matuška, 2011-08-01 02:37 PM

View differences:

usr/src/uts/common/fs/zfs/txg.c Fri Jul 22 09:27:57 2011 -0700 → usr/src/uts/common/fs/zfs/txg.c Mon Aug 01 16:30:01 2011 +0200
479 479
txg_delay(dsl_pool_t *dp, uint64_t txg, int ticks)
480 480
{
481 481
	tx_state_t *tx = &dp->dp_tx;
482
	int timeout = ddi_get_lbolt() + ticks;
482
	clock_t timeout = ddi_get_lbolt() + ticks;
483 483

  
484 484
	/* don't delay if this txg could transition to quiesing immediately */
485 485
	if (tx->tx_open_txg > txg ||
    (1-1/1)