summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_bio.c11
-rw-r--r--sys/msdosfs/msdosfs_fat.c9
-rw-r--r--sys/msdosfs/msdosfs_vnops.c6
-rw-r--r--sys/nfs/nfs_bio.c8
-rw-r--r--sys/sys/buf.h4
-rw-r--r--sys/ufs/ext2fs/ext2fs_balloc.c14
-rw-r--r--sys/ufs/ext2fs/ext2fs_bmap.c4
-rw-r--r--sys/ufs/ext2fs/ext2fs_inode.c4
-rw-r--r--sys/ufs/ext2fs/ext2fs_vfsops.c6
-rw-r--r--sys/ufs/ffs/ffs_alloc.c4
-rw-r--r--sys/ufs/ffs/ffs_balloc.c28
-rw-r--r--sys/ufs/ffs/ffs_inode.c4
-rw-r--r--sys/ufs/ffs/ffs_softdep.c4
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c6
-rw-r--r--sys/ufs/ufs/ufs_bmap.c4
15 files changed, 59 insertions, 57 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 54c12251fa7..daaa31ea27a 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.190 2019/05/09 15:09:40 beck Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.191 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*
@@ -432,7 +432,7 @@ bio_doread(struct vnode *vp, daddr_t blkno, int size, int async)
struct buf *bp;
struct mount *mp;
- bp = getblk(vp, blkno, size, 0, 0);
+ bp = getblk(vp, blkno, size, 0, INFSLP);
/*
* If buffer does not have valid data, start a read.
@@ -966,7 +966,8 @@ incore(struct vnode *vp, daddr_t blkno)
* cached blocks be of the correct size.
*/
struct buf *
-getblk(struct vnode *vp, daddr_t blkno, int size, int slpflag, int slptimeo)
+getblk(struct vnode *vp, daddr_t blkno, int size, int slpflag,
+ uint64_t slptimeo)
{
struct buf *bp;
struct buf b;
@@ -989,8 +990,8 @@ start:
if (bp != NULL) {
if (ISSET(bp->b_flags, B_BUSY)) {
SET(bp->b_flags, B_WANTED);
- error = tsleep(bp, slpflag | (PRIBIO + 1), "getblk",
- slptimeo);
+ error = tsleep_nsec(bp, slpflag | (PRIBIO + 1),
+ "getblk", slptimeo);
splx(s);
if (error)
return (NULL);
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c
index 0bddf99534b..64183914e66 100644
--- a/sys/msdosfs/msdosfs_fat.c
+++ b/sys/msdosfs/msdosfs_fat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_fat.c,v 1.32 2018/05/07 14:43:01 mpi Exp $ */
+/* $OpenBSD: msdosfs_fat.c,v 1.33 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.26 1997/10/17 11:24:02 ws Exp $ */
/*-
@@ -365,7 +365,8 @@ updatefats(struct msdosfsmount *pmp, struct buf *bp, uint32_t fatbn)
for (i = 1; i < pmp->pm_FATs; i++) {
fatbn += pmp->pm_FATsecs;
/* getblk() never fails */
- bpn = getblk(pmp->pm_devvp, fatbn, bp->b_bcount, 0, 0);
+ bpn = getblk(pmp->pm_devvp, fatbn, bp->b_bcount, 0,
+ INFSLP);
bcopy(bp->b_data, bpn->b_data, bp->b_bcount);
if (pmp->pm_flags & MSDOSFSMNT_WAITONFAT)
bwrite(bpn);
@@ -1018,10 +1019,10 @@ extendfile(struct denode *dep, uint32_t count, struct buf **bpp, uint32_t *ncp,
*/
if (dep->de_Attributes & ATTR_DIRECTORY)
bp = getblk(pmp->pm_devvp, cntobn(pmp, cn++),
- pmp->pm_bpcluster, 0, 0);
+ pmp->pm_bpcluster, 0, INFSLP);
else {
bp = getblk(DETOV(dep), frcn++,
- pmp->pm_bpcluster, 0, 0);
+ pmp->pm_bpcluster, 0, INFSLP);
/*
* Do the bmap now, as in msdosfs_write
*/
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c
index dcf77c86a21..9da3f95f632 100644
--- a/sys/msdosfs/msdosfs_vnops.c
+++ b/sys/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vnops.c,v 1.124 2019/07/12 13:56:27 solene Exp $ */
+/* $OpenBSD: msdosfs_vnops.c,v 1.125 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */
/*-
@@ -680,7 +680,7 @@ msdosfs_write(void *v)
* or we write the cluster from its start beyond EOF,
* then no need to read data from disk.
*/
- bp = getblk(thisvp, cn, pmp->pm_bpcluster, 0, 0);
+ bp = getblk(thisvp, cn, pmp->pm_bpcluster, 0, INFSLP);
clrbuf(bp);
/*
* Do the bmap now, since pcbmap needs buffers
@@ -1307,7 +1307,7 @@ msdosfs_mkdir(void *v)
*/
bn = cntobn(pmp, newcluster);
/* always succeeds */
- bp = getblk(pmp->pm_devvp, bn, pmp->pm_bpcluster, 0, 0);
+ bp = getblk(pmp->pm_devvp, bn, pmp->pm_bpcluster, 0, INFSLP);
bzero(bp->b_data, pmp->pm_bpcluster);
bcopy(&dosdirtemplate, bp->b_data, sizeof dosdirtemplate);
denp = (struct direntry *)bp->b_data;
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c
index 7ecfeaa414b..06fb5ee1a63 100644
--- a/sys/nfs/nfs_bio.c
+++ b/sys/nfs/nfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_bio.c,v 1.82 2017/02/22 11:42:46 mpi Exp $ */
+/* $OpenBSD: nfs_bio.c,v 1.83 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */
/*
@@ -431,14 +431,14 @@ nfs_getcacheblk(struct vnode *vp, daddr_t bn, int size, struct proc *p)
struct nfsmount *nmp = VFSTONFS(vp->v_mount);
if (nmp->nm_flag & NFSMNT_INT) {
- bp = getblk(vp, bn, size, PCATCH, 0);
+ bp = getblk(vp, bn, size, PCATCH, INFSLP);
while (bp == NULL) {
if (nfs_sigintr(nmp, NULL, p))
return (NULL);
- bp = getblk(vp, bn, size, 0, 2 * hz);
+ bp = getblk(vp, bn, size, 0, SEC_TO_NSEC(2));
}
} else
- bp = getblk(vp, bn, size, 0, 0);
+ bp = getblk(vp, bn, size, 0, INFSLP);
return (bp);
}
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index 0097b792315..d2dd04470ea 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: buf.h,v 1.108 2019/03/04 01:06:48 dhill Exp $ */
+/* $OpenBSD: buf.h,v 1.109 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: buf.h,v 1.25 1997/04/09 21:12:17 mycroft Exp $ */
/*
@@ -277,7 +277,7 @@ void buf_dirty(struct buf *);
void buf_undirty(struct buf *);
void buf_adjcnt(struct buf *, long);
int bwrite(struct buf *);
-struct buf *getblk(struct vnode *, daddr_t, int, int, int);
+struct buf *getblk(struct vnode *, daddr_t, int, int, uint64_t);
struct buf *geteblk(size_t);
struct buf *incore(struct vnode *, daddr_t);
diff --git a/sys/ufs/ext2fs/ext2fs_balloc.c b/sys/ufs/ext2fs/ext2fs_balloc.c
index 99f42cc7afc..b615739e460 100644
--- a/sys/ufs/ext2fs/ext2fs_balloc.c
+++ b/sys/ufs/ext2fs/ext2fs_balloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_balloc.c,v 1.26 2016/06/03 18:00:10 natano Exp $ */
+/* $OpenBSD: ext2fs_balloc.c,v 1.27 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: ext2fs_balloc.c,v 1.10 2001/07/04 21:16:01 chs Exp $ */
/*
@@ -97,7 +97,7 @@ ext2fs_buf_alloc(struct inode *ip, u_int32_t bn, int size, struct ucred *cred,
ip->i_e2fs_last_blk = newb;
ip->i_e2fs_blocks[bn] = htole32(newb);
ip->i_flag |= IN_CHANGE | IN_UPDATE;
- bp = getblk(vp, bn, fs->e2fs_bsize, 0, 0);
+ bp = getblk(vp, bn, fs->e2fs_bsize, 0, INFSLP);
bp->b_blkno = fsbtodb(fs, newb);
if (flags & B_CLRBUF)
clrbuf(bp);
@@ -129,7 +129,7 @@ ext2fs_buf_alloc(struct inode *ip, u_int32_t bn, int size, struct ucred *cred,
nb = newb;
*allocblk++ = nb;
ip->i_e2fs_last_blk = newb;
- bp = getblk(vp, indirs[1].in_lbn, fs->e2fs_bsize, 0, 0);
+ bp = getblk(vp, indirs[1].in_lbn, fs->e2fs_bsize, 0, INFSLP);
bp->b_blkno = fsbtodb(fs, newb);
clrbuf(bp);
/*
@@ -170,7 +170,7 @@ ext2fs_buf_alloc(struct inode *ip, u_int32_t bn, int size, struct ucred *cred,
nb = newb;
*allocblk++ = nb;
ip->i_e2fs_last_blk = newb;
- nbp = getblk(vp, indirs[i].in_lbn, fs->e2fs_bsize, 0, 0);
+ nbp = getblk(vp, indirs[i].in_lbn, fs->e2fs_bsize, 0, INFSLP);
nbp->b_blkno = fsbtodb(fs, nb);
clrbuf(nbp);
/*
@@ -218,7 +218,7 @@ ext2fs_buf_alloc(struct inode *ip, u_int32_t bn, int size, struct ucred *cred,
} else {
bdwrite(bp);
}
- nbp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0);
+ nbp = getblk(vp, lbn, fs->e2fs_bsize, 0, INFSLP);
nbp->b_blkno = fsbtodb(fs, nb);
if (flags & B_CLRBUF)
clrbuf(nbp);
@@ -233,7 +233,7 @@ ext2fs_buf_alloc(struct inode *ip, u_int32_t bn, int size, struct ucred *cred,
goto fail;
}
} else {
- nbp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0);
+ nbp = getblk(vp, lbn, fs->e2fs_bsize, 0, INFSLP);
nbp->b_blkno = fsbtodb(fs, nb);
}
@@ -269,7 +269,7 @@ fail:
}
for (i = unwindidx + 1; i <= num; i++) {
bp = getblk(vp, indirs[i].in_lbn, (int)fs->e2fs_bsize,
- 0, 0);
+ 0, INFSLP);
bp->b_flags |= B_INVAL;
brelse(bp);
}
diff --git a/sys/ufs/ext2fs/ext2fs_bmap.c b/sys/ufs/ext2fs/ext2fs_bmap.c
index 11a695aa5c1..3311e1b76bb 100644
--- a/sys/ufs/ext2fs/ext2fs_bmap.c
+++ b/sys/ufs/ext2fs/ext2fs_bmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_bmap.c,v 1.26 2015/03/14 03:38:52 jsg Exp $ */
+/* $OpenBSD: ext2fs_bmap.c,v 1.27 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: ext2fs_bmap.c,v 1.5 2000/03/30 12:41:11 augustss Exp $ */
/*
@@ -215,7 +215,7 @@ ext2fs_bmaparray(struct vnode *vp, daddr_t bn, daddr_t *bnp,
brelse(bp);
xap->in_exists = 1;
- bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, 0);
+ bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, INFSLP);
if (bp->b_flags & (B_DONE | B_DELWRI)) {
;
}
diff --git a/sys/ufs/ext2fs/ext2fs_inode.c b/sys/ufs/ext2fs/ext2fs_inode.c
index 6777333bc2b..d8398c76c8c 100644
--- a/sys/ufs/ext2fs/ext2fs_inode.c
+++ b/sys/ufs/ext2fs/ext2fs_inode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_inode.c,v 1.60 2019/07/01 05:11:32 kevlo Exp $ */
+/* $OpenBSD: ext2fs_inode.c,v 1.61 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: ext2fs_inode.c,v 1.24 2001/06/19 12:59:18 wiz Exp $ */
/*
@@ -448,7 +448,7 @@ ext2fs_indirtrunc(struct inode *ip, int32_t lbn, int32_t dbn, int32_t lastbn, in
* explicitly instead of letting bread do everything for us.
*/
vp = ITOV(ip);
- bp = getblk(vp, lbn, (int)fs->e2fs_bsize, 0, 0);
+ bp = getblk(vp, lbn, (int)fs->e2fs_bsize, 0, INFSLP);
if (!(bp->b_flags & (B_DONE | B_DELWRI))) {
curproc->p_ru.ru_inblock++; /* pay for read */
bcstats.pendingreads++;
diff --git a/sys/ufs/ext2fs/ext2fs_vfsops.c b/sys/ufs/ext2fs/ext2fs_vfsops.c
index 35173dcccaf..83705f6fb03 100644
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_vfsops.c,v 1.111 2019/07/01 05:11:32 kevlo Exp $ */
+/* $OpenBSD: ext2fs_vfsops.c,v 1.112 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.1 1997/06/11 09:34:07 bouyer Exp $ */
/*
@@ -1035,7 +1035,7 @@ ext2fs_sbupdate(struct ufsmount *mp, int waitfor)
struct buf *bp;
int error = 0;
- bp = getblk(mp->um_devvp, SBLOCK, SBSIZE, 0, 0);
+ bp = getblk(mp->um_devvp, SBLOCK, SBSIZE, 0, INFSLP);
e2fs_sbsave(&fs->e2fs, (struct ext2fs *) bp->b_data);
if (waitfor == MNT_WAIT)
error = bwrite(bp);
@@ -1055,7 +1055,7 @@ ext2fs_cgupdate(struct ufsmount *mp, int waitfor)
allerror = ext2fs_sbupdate(mp, waitfor);
for (i = 0; i < fs->e2fs_ngdb; i++) {
bp = getblk(mp->um_devvp, fsbtodb(fs, ((fs->e2fs_bsize>1024)?0:1)+i+1),
- fs->e2fs_bsize, 0, 0);
+ fs->e2fs_bsize, 0, INFSLP);
e2fs_cgsave(&fs->e2fs_gd[i* fs->e2fs_bsize / sizeof(struct ext2_gd)], (struct ext2_gd*)bp->b_data, fs->e2fs_bsize);
if (waitfor == MNT_WAIT)
error = bwrite(bp);
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index 7c6bc8c27ff..dd2207eab8e 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_alloc.c,v 1.108 2016/05/23 20:47:49 tb Exp $ */
+/* $OpenBSD: ffs_alloc.c,v 1.109 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */
/*
@@ -1191,7 +1191,7 @@ gotit:
ibp = getblk(ip->i_devvp, fsbtodb(fs,
ino_to_fsba(fs, cg * fs->fs_ipg + cgp->cg_initediblk)),
- (int)fs->fs_bsize, 0, 0);
+ (int)fs->fs_bsize, 0, INFSLP);
memset(ibp->b_data, 0, fs->fs_bsize);
dp2 = (struct ufs2_dinode *)(ibp->b_data);
diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c
index ca1c80d804b..ce94cffc700 100644
--- a/sys/ufs/ffs/ffs_balloc.c
+++ b/sys/ufs/ffs/ffs_balloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_balloc.c,v 1.44 2015/11/28 21:52:02 beck Exp $ */
+/* $OpenBSD: ffs_balloc.c,v 1.45 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: ffs_balloc.c,v 1.3 1996/02/09 22:22:21 christos Exp $ */
/*
@@ -200,7 +200,7 @@ ffs1_balloc(struct inode *ip, off_t startoffset, int size, struct ucred *cred,
if (error)
return (error);
if (bpp != NULL) {
- *bpp = getblk(vp, lbn, fs->fs_bsize, 0, 0);
+ *bpp = getblk(vp, lbn, fs->fs_bsize, 0, INFSLP);
if (nsize < fs->fs_bsize)
(*bpp)->b_bcount = nsize;
(*bpp)->b_blkno = fsbtodb(fs, newb);
@@ -243,7 +243,7 @@ ffs1_balloc(struct inode *ip, off_t startoffset, int size, struct ucred *cred,
nb = newb;
*allocblk++ = nb;
- bp = getblk(vp, indirs[1].in_lbn, fs->fs_bsize, 0, 0);
+ bp = getblk(vp, indirs[1].in_lbn, fs->fs_bsize, 0, INFSLP);
bp->b_blkno = fsbtodb(fs, nb);
clrbuf(bp);
@@ -292,7 +292,7 @@ ffs1_balloc(struct inode *ip, off_t startoffset, int size, struct ucred *cred,
}
nb = newb;
*allocblk++ = nb;
- nbp = getblk(vp, indirs[i].in_lbn, fs->fs_bsize, 0, 0);
+ nbp = getblk(vp, indirs[i].in_lbn, fs->fs_bsize, 0, INFSLP);
nbp->b_blkno = fsbtodb(fs, nb);
clrbuf(nbp);
@@ -337,7 +337,7 @@ ffs1_balloc(struct inode *ip, off_t startoffset, int size, struct ucred *cred,
nb = newb;
*allocblk++ = nb;
if (bpp != NULL) {
- nbp = getblk(vp, lbn, fs->fs_bsize, 0, 0);
+ nbp = getblk(vp, lbn, fs->fs_bsize, 0, INFSLP);
nbp->b_blkno = fsbtodb(fs, nb);
if (flags & B_CLRBUF)
clrbuf(nbp);
@@ -367,7 +367,7 @@ ffs1_balloc(struct inode *ip, off_t startoffset, int size, struct ucred *cred,
goto fail;
}
} else {
- nbp = getblk(vp, lbn, fs->fs_bsize, 0, 0);
+ nbp = getblk(vp, lbn, fs->fs_bsize, 0, INFSLP);
nbp->b_blkno = fsbtodb(fs, nb);
}
*bpp = nbp;
@@ -572,7 +572,7 @@ ffs2_balloc(struct inode *ip, off_t off, int size, struct ucred *cred,
return (error);
if (bpp != NULL) {
- bp = getblk(vp, lbn, fs->fs_bsize, 0, 0);
+ bp = getblk(vp, lbn, fs->fs_bsize, 0, INFSLP);
if (nsize < fs->fs_bsize)
bp->b_bcount = nsize;
bp->b_blkno = fsbtodb(fs, newb);
@@ -622,7 +622,7 @@ ffs2_balloc(struct inode *ip, off_t off, int size, struct ucred *cred,
nb = newb;
*allocblk++ = nb;
- bp = getblk(vp, indirs[1].in_lbn, fs->fs_bsize, 0, 0);
+ bp = getblk(vp, indirs[1].in_lbn, fs->fs_bsize, 0, INFSLP);
bp->b_blkno = fsbtodb(fs, nb);
clrbuf(bp);
@@ -681,7 +681,7 @@ ffs2_balloc(struct inode *ip, off_t off, int size, struct ucred *cred,
nb = newb;
*allocblk++ = nb;
- nbp = getblk(vp, indirs[i].in_lbn, fs->fs_bsize, 0, 0);
+ nbp = getblk(vp, indirs[i].in_lbn, fs->fs_bsize, 0, INFSLP);
nbp->b_blkno = fsbtodb(fs, nb);
clrbuf(nbp);
@@ -733,7 +733,7 @@ ffs2_balloc(struct inode *ip, off_t off, int size, struct ucred *cred,
*allocblk++ = nb;
if (bpp != NULL) {
- nbp = getblk(vp, lbn, fs->fs_bsize, 0, 0);
+ nbp = getblk(vp, lbn, fs->fs_bsize, 0, INFSLP);
nbp->b_blkno = fsbtodb(fs, nb);
if (flags & B_CLRBUF)
clrbuf(nbp);
@@ -771,7 +771,7 @@ ffs2_balloc(struct inode *ip, off_t off, int size, struct ucred *cred,
goto fail;
}
} else {
- nbp = getblk(vp, lbn, fs->fs_bsize, 0, 0);
+ nbp = getblk(vp, lbn, fs->fs_bsize, 0, INFSLP);
nbp->b_blkno = fsbtodb(fs, nb);
clrbuf(nbp);
}
@@ -811,13 +811,13 @@ fail:
break;
bp = getblk(vp, indirs[i].in_lbn, (int) fs->fs_bsize,
- 0, 0);
+ 0, INFSLP);
if (bp->b_flags & B_DELWRI) {
nb = fsbtodb(fs, cgtod(fs, dtog(fs,
dbtofsb(fs, bp->b_blkno))));
bwrite(bp);
bp = getblk(ip->i_devvp, nb,
- (int) fs->fs_cgsize, 0, 0);
+ (int) fs->fs_cgsize, 0, INFSLP);
if (bp->b_flags & B_DELWRI)
bwrite(bp);
else {
@@ -857,7 +857,7 @@ fail:
for (i = unwindidx + 1; i <= num; i++) {
bp = getblk(vp, indirs[i].in_lbn, (int)fs->fs_bsize, 0,
- 0);
+ INFSLP);
bp->b_flags |= B_INVAL;
brelse(bp);
}
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 686de3a5dcb..3c5cfe35cf5 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_inode.c,v 1.78 2019/06/18 07:33:24 anton Exp $ */
+/* $OpenBSD: ffs_inode.c,v 1.79 2019/07/19 00:24:31 cheloha Exp $ */
/* $NetBSD: ffs_inode.c,v 1.10 1996/05/11 18:27:19 mycroft Exp $ */
/*
@@ -479,7 +479,7 @@ ffs_indirtrunc(struct inode *ip, daddr_t lbn, daddr_t dbn,
* explicitly instead of letting bread do everything for us.
*/
vp = ITOV(ip);
- bp = getblk(vp, lbn, (int)fs->fs_bsize, 0, 0);
+ bp = getblk(vp, lbn, (int)fs->fs_bsize, 0, INFSLP);
if (!(bp->b_flags & (B_DONE | B_DELWRI))) {
curproc->p_ru.ru_inblock++; /* pay for read */
bcstats.pendingreads++;
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index c8ee770d2b6..edf206c1713 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_softdep.c,v 1.143 2018/07/02 20:56:22 bluhm Exp $ */
+/* $OpenBSD: ffs_softdep.c,v 1.144 2019/07/19 00:24:31 cheloha Exp $ */
/*
* Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved.
@@ -1850,7 +1850,7 @@ setup_allocindir_phase2(struct buf *bp, struct inode *ip,
NULL);
}
newindirdep->ir_savebp =
- getblk(ip->i_devvp, bp->b_blkno, bp->b_bcount, 0, 0);
+ getblk(ip->i_devvp, bp->b_blkno, bp->b_bcount, 0, INFSLP);
#if 0
BUF_KERNPROC(newindirdep->ir_savebp);
#endif
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 41532f35faf..2d3538088d0 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vfsops.c,v 1.179 2018/09/26 14:51:44 visa Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.180 2019/07/19 00:24:32 cheloha Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -1498,7 +1498,7 @@ ffs_sbupdate(struct ufsmount *mp, int waitfor)
if (i + fs->fs_frag > blks)
size = (blks - i) * fs->fs_fsize;
bp = getblk(mp->um_devvp, fsbtodb(fs, fs->fs_csaddr + i),
- size, 0, 0);
+ size, 0, INFSLP);
memcpy(bp->b_data, space, size);
space += size;
if (waitfor != MNT_WAIT)
@@ -1518,7 +1518,7 @@ ffs_sbupdate(struct ufsmount *mp, int waitfor)
bp = getblk(mp->um_devvp,
fs->fs_sblockloc >> (fs->fs_fshift - fs->fs_fsbtodb),
- (int)fs->fs_sbsize, 0, 0);
+ (int)fs->fs_sbsize, 0, INFSLP);
fs->fs_fmod = 0;
fs->fs_time = time_second;
memcpy(bp->b_data, fs, fs->fs_sbsize);
diff --git a/sys/ufs/ufs/ufs_bmap.c b/sys/ufs/ufs/ufs_bmap.c
index 858f5fceb65..d7034ed1a10 100644
--- a/sys/ufs/ufs/ufs_bmap.c
+++ b/sys/ufs/ufs/ufs_bmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs_bmap.c,v 1.35 2015/03/14 03:38:53 jsg Exp $ */
+/* $OpenBSD: ufs_bmap.c,v 1.36 2019/07/19 00:24:32 cheloha Exp $ */
/* $NetBSD: ufs_bmap.c,v 1.3 1996/02/09 22:36:00 christos Exp $ */
/*
@@ -160,7 +160,7 @@ ufs_bmaparray(struct vnode *vp, daddr_t bn, daddr_t *bnp, struct indir *ap,
brelse(bp);
xap->in_exists = 1;
- bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, 0);
+ bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, INFSLP);
if (bp->b_flags & (B_DONE | B_DELWRI)) {
;
}