summaryrefslogtreecommitdiffstats
path: root/fs/ext4/xattr.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-11-11 17:32:53 -0700
committerJens Axboe <axboe@kernel.dk>2021-11-11 17:39:46 -0700
commitd3e3c102d107bb84251455a298cf475f24bab995 (patch)
treeb32b5498d47f554f2ebf09558834842b67185d69 /fs/ext4/xattr.h
parentbad119b9a00019054f0c9e2045f312ed63ace4f4 (diff)
downloadlinux-d3e3c102d107bb84251455a298cf475f24bab995.tar.gz
linux-d3e3c102d107bb84251455a298cf475f24bab995.tar.bz2
linux-d3e3c102d107bb84251455a298cf475f24bab995.zip
io-wq: serialize hash clear with wakeup
We need to ensure that we serialize the stalled and hash bits with the wait_queue wait handler, or we could be racing with someone modifying the hashed state after we find it busy, but before we then give up and wait for it to be cleared. This can cause random delays or stalls when handling buffered writes for many files, where some of these files cause hash collisions between the worker threads. Cc: stable@vger.kernel.org Reported-by: Daniel Black <daniel@mariadb.org> Fixes: e941894eae31 ("io-wq: make buffered file write hashed work map per-ctx") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/ext4/xattr.h')
0 files changed, 0 insertions, 0 deletions