Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133054060
D29045.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
864 B
Referenced Files
None
Subscribers
None
D29045.diff
View Options
diff --git a/sys/ufs/ufs/ufs_dirhash.c b/sys/ufs/ufs/ufs_dirhash.c
--- a/sys/ufs/ufs/ufs_dirhash.c
+++ b/sys/ufs/ufs/ufs_dirhash.c
@@ -108,7 +108,7 @@
#define DIRHASHLIST_LOCK() mtx_lock(&ufsdirhash_mtx)
#define DIRHASHLIST_UNLOCK() mtx_unlock(&ufsdirhash_mtx)
-#define DIRHASH_BLKALLOC_WAITOK() uma_zalloc(ufsdirhash_zone, M_WAITOK)
+#define DIRHASH_BLKALLOC() uma_zalloc(ufsdirhash_zone, M_NOWAIT)
#define DIRHASH_BLKFREE(ptr) uma_zfree(ufsdirhash_zone, (ptr))
#define DIRHASH_ASSERT_LOCKED(dh) \
sx_assert(&(dh)->dh_lock, SA_LOCKED)
@@ -425,7 +425,7 @@
if (dh->dh_blkfree == NULL)
goto fail;
for (i = 0; i < narrays; i++) {
- if ((dh->dh_hash[i] = DIRHASH_BLKALLOC_WAITOK()) == NULL)
+ if ((dh->dh_hash[i] = DIRHASH_BLKALLOC()) == NULL)
goto fail;
for (j = 0; j < DH_NBLKOFF; j++)
dh->dh_hash[i][j] = DIRHASH_EMPTY;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 23, 12:35 PM (7 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24091478
Default Alt Text
D29045.diff (864 B)
Attached To
Mode
D29045: Don't use sleeping allocations for ufs dirhash blocks when holding directory vnode
Attached
Detach File
Event Timeline
Log In to Comment