Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jan 2011 17:00:24 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/133170: commit references a PR
Message-ID:  <201101011700.p01H0OAP062652@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/133170; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/133170: commit references a PR
Date: Sat,  1 Jan 2011 16:59:12 +0000 (UTC)

 Author: brucec
 Date: Sat Jan  1 16:59:05 2011
 New Revision: 216873
 URL: http://svn.freebsd.org/changeset/base/216873
 
 Log:
   There can be more than 0x20000000 swap meta blocks allocated if a swap-backed
   md(4) device is used. Don't panic when deallocating such a device if swap
   has been used.
   
   PR:	kern/133170
   Discussed with:	kib
   MFC after:	3 days
 
 Modified:
   head/sys/vm/swap_pager.c
 
 Modified: head/sys/vm/swap_pager.c
 ==============================================================================
 --- head/sys/vm/swap_pager.c	Sat Jan  1 16:47:12 2011	(r216872)
 +++ head/sys/vm/swap_pager.c	Sat Jan  1 16:59:05 2011	(r216873)
 @@ -1679,8 +1679,6 @@ swap_pager_isswapped(vm_object_t object,
  			}
  		}
  		index += SWAP_META_PAGES;
 -		if (index > 0x20000000)
 -			panic("swap_pager_isswapped: failed to locate all swap meta blocks");
  	}
  	mtx_unlock(&swhash_mtx);
  	return (0);
 @@ -1995,8 +1993,6 @@ swp_pager_meta_free_all(vm_object_t obje
  		}
  		mtx_unlock(&swhash_mtx);
  		index += SWAP_META_PAGES;
 -		if (index > 0x20000000)
 -			panic("swp_pager_meta_free_all: failed to locate all swap meta blocks");
  	}
  }
  
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101011700.p01H0OAP062652>