Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156786941
D25898.id75188.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
679 B
Referenced Files
None
Subscribers
None
D25898.id75188.diff
View Options
Index: sys/kern/vfs_bio.c
===================================================================
--- sys/kern/vfs_bio.c
+++ sys/kern/vfs_bio.c
@@ -3865,14 +3865,9 @@
if (bp == NULL)
goto newbuf_unlocked;
- lockflags = LK_EXCLUSIVE | LK_SLEEPFAIL |
- ((flags & GB_LOCK_NOWAIT) ? LK_NOWAIT : 0);
-
- error = BUF_TIMELOCK(bp, lockflags, NULL, "getblku", slpflag,
- slptimeo);
- if (error == EINTR || error == ERESTART)
- return (error);
- else if (error != 0)
+ lockflags = LK_EXCLUSIVE | LK_SLEEPFAIL | LK_NOWAIT;
+ error = BUF_TIMELOCK(bp, lockflags, NULL, "getblku", 0, 0);
+ if (error != 0)
goto loop;
/* Verify buf identify has not changed since lookup. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 17, 9:18 AM (17 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33186031
Default Alt Text
D25898.id75188.diff (679 B)
Attached To
Mode
D25898: getblk: Avoid sleeping on wrong buf in lockless path
Attached
Detach File
Event Timeline
Log In to Comment