summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-06-03 01:47:37 +0000
committertjr <tjr@FreeBSD.org>2004-06-03 01:47:37 +0000
commit7a46b27935d2825aabd5792cab33c94cc1096b0a (patch)
tree4ec923639b76e4b631bd73b4a91f5dd83dbbfce9 /sys/ufs
parentde0c6ecd474a085a3ee08011f10c2eb1c99fd0bc (diff)
downloadFreeBSD-src-7a46b27935d2825aabd5792cab33c94cc1096b0a.zip
FreeBSD-src-7a46b27935d2825aabd5792cab33c94cc1096b0a.tar.gz
Move TDF_DEADLKTREAT into td_pflags (and rename it accordingly) to avoid
having to acquire sched_lock when manipulating it in lockmgr(), uiomove(), and uiomove_fromphys(). Reviewed by: jhb
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_rawread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_rawread.c b/sys/ufs/ffs/ffs_rawread.c
index 3dcb33e..fcc6193 100644
--- a/sys/ufs/ffs/ffs_rawread.c
+++ b/sys/ufs/ffs/ffs_rawread.c
@@ -436,8 +436,8 @@ ffs_rawread(struct vnode *vp,
uio->uio_iovcnt == 1 &&
uio->uio_segflg == UIO_USERSPACE &&
uio->uio_resid == uio->uio_iov->iov_len &&
- (((uio->uio_td != NULL) ? uio->uio_td : curthread)->td_flags &
- TDF_DEADLKTREAT) == 0) {
+ (((uio->uio_td != NULL) ? uio->uio_td : curthread)->td_pflags &
+ TDP_DEADLKTREAT) == 0) {
int secsize; /* Media sector size */
off_t filebytes; /* Bytes left of file */
int blockbytes; /* Bytes left of file in full blocks */
OpenPOWER on IntegriCloud