Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161810506
D25914.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
791 B
Referenced Files
None
Subscribers
None
D25914.id.diff
View Options
Index: head/sys/kern/vfs_bio.c
===================================================================
--- head/sys/kern/vfs_bio.c
+++ head/sys/kern/vfs_bio.c
@@ -1637,7 +1637,7 @@
buf_alloc(struct bufdomain *bd)
{
struct buf *bp;
- int freebufs;
+ int freebufs, error;
/*
* We can only run out of bufs in the buf zone if the average buf
@@ -1660,8 +1660,10 @@
if (freebufs == bd->bd_lofreebuffers)
bufspace_daemon_wakeup(bd);
- if (BUF_LOCK(bp, LK_EXCLUSIVE | LK_NOWAIT, NULL) != 0)
- panic("getnewbuf_empty: Locked buf %p on free queue.", bp);
+ error = BUF_LOCK(bp, LK_EXCLUSIVE, NULL);
+ KASSERT(error == 0, ("%s: BUF_LOCK on free buf %p: %d.", __func__, bp,
+ error));
+ (void)error;
KASSERT(bp->b_vp == NULL,
("bp: %p still has vnode %p.", bp, bp->b_vp));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 8, 1:49 AM (1 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34822280
Default Alt Text
D25914.id.diff (791 B)
Attached To
Mode
D25914: Unlocked getblk: Fix new false-positive assertion
Attached
Detach File
Event Timeline
Log In to Comment