diff options
author | mckusick <mckusick@FreeBSD.org> | 2002-10-09 07:28:35 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2002-10-09 07:28:35 +0000 |
commit | e13d3e92766f944117dc966e4f0297e36e1b8d26 (patch) | |
tree | a381ea83bda261c20d982b0381c2f6395abb64b8 /contrib/tar/src | |
parent | 08c1778957b9ef53b1f7108cd793b43eb7c756b0 (diff) | |
download | FreeBSD-src-e13d3e92766f944117dc966e4f0297e36e1b8d26.zip FreeBSD-src-e13d3e92766f944117dc966e4f0297e36e1b8d26.tar.gz |
When creating a snapshot, create a list of initially allocated blocks.
Whenever doing a copy-on-write check, first look in the list of
initially allocated blocks to see if it is there. If so, no further
check is needed. If not, fall through and do the full check. This
change eliminates one of two known deadlocks caused by snapshots.
Handling the second deadlock will be the subject of another check-in.
This change also reduces the cost of the copy-on-write check by
speeding up the verification of frequently checked blocks.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'contrib/tar/src')
0 files changed, 0 insertions, 0 deletions