Skip to content

Commit

Permalink
Correct WIN32 paths after bulk git merge
Browse files Browse the repository at this point in the history
fix ZVOL blocksize

decrease impact of delete delay
  • Loading branch information
lundman committed May 27, 2019
1 parent 9cc1293 commit 279dc74
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 17 deletions.
2 changes: 0 additions & 2 deletions ZFSin/zfs/include/sys/fs/zfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1183,8 +1183,6 @@ typedef enum {
#define SNAP_ITER_MIN_TXG "snap_iter_min_txg"
#define SNAP_ITER_MAX_TXG "snap_iter_max_txg"

#define ZVOL_DEFAULT_BLOCKSIZE 131072

/*
* zvol ioctl to get dataset name
*/
Expand Down
6 changes: 3 additions & 3 deletions ZFSin/zfs/module/zfs/zfs_vnops_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ NTSTATUS zfs_setunlink(vnode_t *vp, vnode_t *dvp) {
// unlinked set but not yet reclaimed.
// We could optionally drop our iocount here, and try to take it again
// handling the case where it may have been deleted after drain.
while (zp->z_size >= 3 &&
while (zp->z_size == 3 &&
vnode_drain_delayclose(1) >= 1) {
dprintf("%s: delete_pending waiting\n", __func__);
delay(11);
delay(1);
// This crutch should not be needed, in theory
//if (nodeadlock++ > 10) break;
if (nodeadlock++ > 10) break;
}

if (zp->z_size > 2) {
Expand Down
12 changes: 0 additions & 12 deletions scripts/man-dates.sh

This file was deleted.

0 comments on commit 279dc74

Please sign in to comment.