diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-31 16:42:45 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-31 16:42:45 +0000 |
| commit | 17a1391990632cd26c0bb13095f1012d83dba5e4 (patch) | |
| tree | 5bac77896fbd3b5412e6f42140c8335ad91f96d2 /sys/dev/md/md.c | |
| parent | cf459fc35c2947077d05292e0a763c78587060c6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/md/md.c')
| -rw-r--r-- | sys/dev/md/md.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 7071a3ea4673..1577f0226db1 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -497,8 +497,7 @@ mdstart_vnode(struct md_s *sc, struct bio *bp) auio.uio_td = curthread; /* * When reading set IO_DIRECT to try to avoid double-caching - * the data. When writing IO_DIRECT is not optimal, but we - * must set IO_NOWDRAIN to avoid a wdrain deadlock. + * the data. When writing IO_DIRECT is not optimal. */ if (bp->bio_cmd == BIO_READ) { vn_lock(sc->vnode, LK_EXCLUSIVE | LK_RETRY, curthread); @@ -506,7 +505,7 @@ mdstart_vnode(struct md_s *sc, struct bio *bp) } else { (void) vn_start_write(sc->vnode, &mp, V_WAIT); vn_lock(sc->vnode, LK_EXCLUSIVE | LK_RETRY, curthread); - error = VOP_WRITE(sc->vnode, &auio, IO_NOWDRAIN, sc->cred); + error = VOP_WRITE(sc->vnode, &auio, 0, sc->cred); vn_finished_write(mp); } VOP_UNLOCK(sc->vnode, 0, curthread); |
