projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ext4: move check under lock scope to close a race.
[firefly-linux-kernel-4.4.55.git]
/
fs
/
xfs
/
xfs_mru_cache.c
diff --git
a/fs/xfs/xfs_mru_cache.c
b/fs/xfs/xfs_mru_cache.c
index 1eb6f3df698c8bb4eac11b5c03aa23790cbc65c4..30ecca3037e37bc5354fb9e37deb4db6e163fa8a 100644
(file)
--- a/
fs/xfs/xfs_mru_cache.c
+++ b/
fs/xfs/xfs_mru_cache.c
@@
-304,7
+304,8
@@
_xfs_mru_cache_reap(
int
xfs_mru_cache_init(void)
{
- xfs_mru_reap_wq = alloc_workqueue("xfs_mru_cache", WQ_MEM_RECLAIM, 1);
+ xfs_mru_reap_wq = alloc_workqueue("xfs_mru_cache",
+ WQ_MEM_RECLAIM|WQ_FREEZABLE, 1);
if (!xfs_mru_reap_wq)
return -ENOMEM;
return 0;