Revision 74f464e97044da33b25aaed00213914b0edf1f2e authored by Jens Axboe on 17 April 2019, 14:57:48 UTC, committed by Jens Axboe on 17 April 2019, 17:41:49 UTC
This is a leftover from when the rings initially were not free flowing, and hence a test for tail + 1 == head would indicate full. Since we now let them wrap instead of mask them with the size, we need to check if they drift more than the ring size from each other. This fixes a case where we'd overwrite CQ ring entries, if the user failed to reap completions. Both cases would ultimately result in lost completions as the application violated the depth it asked for. The only difference is that before this fix we'd return invalid entries for the overflowed completions, instead of properly flagging it in the cq_ring->overflow variable. Reported-by: Stefan Bühler <source@stbuehler.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent b19062a
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.4 KB |
Makefile | -rw-r--r-- | 343 bytes |
acl.c | -rw-r--r-- | 3.2 KB |
acl.h | -rw-r--r-- | 743 bytes |
aops.c | -rw-r--r-- | 23.9 KB |
aops.h | -rw-r--r-- | 587 bytes |
bmap.c | -rw-r--r-- | 63.6 KB |
bmap.h | -rw-r--r-- | 2.2 KB |
dentry.c | -rw-r--r-- | 2.7 KB |
dir.c | -rw-r--r-- | 52.2 KB |
dir.h | -rw-r--r-- | 2.6 KB |
export.c | -rw-r--r-- | 4.7 KB |
file.c | -rw-r--r-- | 33.1 KB |
gfs2.h | -rw-r--r-- | 524 bytes |
glock.c | -rw-r--r-- | 53.5 KB |
glock.h | -rw-r--r-- | 8.9 KB |
glops.c | -rw-r--r-- | 16.6 KB |
glops.h | -rw-r--r-- | 1.1 KB |
incore.h | -rw-r--r-- | 23.4 KB |
inode.c | -rw-r--r-- | 48.9 KB |
inode.h | -rw-r--r-- | 4.2 KB |
lock_dlm.c | -rw-r--r-- | 39.1 KB |
log.c | -rw-r--r-- | 28.1 KB |
log.h | -rw-r--r-- | 2.4 KB |
lops.c | -rw-r--r-- | 21.6 KB |
lops.h | -rw-r--r-- | 3.0 KB |
main.c | -rw-r--r-- | 6.0 KB |
meta_io.c | -rw-r--r-- | 10.7 KB |
meta_io.h | -rw-r--r-- | 2.6 KB |
ops_fstype.c | -rw-r--r-- | 34.8 KB |
quota.c | -rw-r--r-- | 42.5 KB |
quota.h | -rw-r--r-- | 2.2 KB |
recovery.c | -rw-r--r-- | 13.5 KB |
recovery.h | -rw-r--r-- | 1.3 KB |
rgrp.c | -rw-r--r-- | 71.4 KB |
rgrp.h | -rw-r--r-- | 3.5 KB |
super.c | -rw-r--r-- | 42.4 KB |
super.h | -rw-r--r-- | 1.9 KB |
sys.c | -rw-r--r-- | 17.8 KB |
sys.h | -rw-r--r-- | 659 bytes |
trace_gfs2.h | -rw-r--r-- | 17.5 KB |
trans.c | -rw-r--r-- | 7.1 KB |
trans.h | -rw-r--r-- | 1.5 KB |
util.c | -rw-r--r-- | 7.5 KB |
util.h | -rw-r--r-- | 5.1 KB |
xattr.c | -rw-r--r-- | 32.0 KB |
xattr.h | -rw-r--r-- | 2.0 KB |
Computing file changes ...