aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>1999-12-16 22:02:09 +0000
committerKirk McKusick <mckusick@FreeBSD.org>1999-12-16 22:02:09 +0000
commit6a4152243f1b6dba4ad0952116c83b6072b23a9c (patch)
treef6f3ab487b466c718a215f847b847559939066ed /sys/contrib
parent346b6c5db8529e329f3ab4e161a75d8a3ddefdef (diff)
downloadsrc-6a4152243f1b6dba4ad0952116c83b6072b23a9c.tar.gz
src-6a4152243f1b6dba4ad0952116c83b6072b23a9c.zip
The function request_cleanup() had a tsleep() with PCATCH. It is
quite dangerous, since the process may hold locks at the point, and if it is stopped in that tsleep the machine may hang. Because the sleep is so short, the PCATCH is not required here, so it has been removed. For the future, the FreeBSD team needs to decide whether it is still reasonable to stop a process in tsleep, as that may affect any other code that uses PCATCH while holding kernel locks. Submitted by: Dmitrij Tejblum <tejblum@arc.hq.cti.ru> Reviewed by: Kirk McKusick <mckusick@mckusick.com>
Notes
Notes: svn path=/head/; revision=54700
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/softupdates/ffs_softdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/softupdates/ffs_softdep.c b/sys/contrib/softupdates/ffs_softdep.c
index a0252d20889c..20cb2dce5be8 100644
--- a/sys/contrib/softupdates/ffs_softdep.c
+++ b/sys/contrib/softupdates/ffs_softdep.c
@@ -4252,7 +4252,7 @@ request_cleanup(resource, islocked)
tickdelay > 2 ? tickdelay : 2);
}
FREE_LOCK_INTERLOCKED(&lk);
- (void) tsleep((caddr_t)&proc_waiting, PPAUSE | PCATCH, "softupdate", 0);
+ (void) tsleep((caddr_t)&proc_waiting, PPAUSE, "softupdate", 0);
ACQUIRE_LOCK_INTERLOCKED(&lk);
if (proc_waiting) {
untimeout(pause_timer, NULL, handle);