Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDCACHE - Use atomics for readdir flags
Although the write lock is always held when we return from mdcache_populate_dir_chunk(), the readdir loop can terminate early, if the client buffer doesn't have enough space. This could result in multiple readdirs processing the same chunk under the read lock, which can deref an entry twice. Switch to using atomics on this flag field. Change-Id: Ibd59283b274422ee6f2477066389e6e43746fe6f Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters