]> git.baikalelectronics.ru Git - kernel.git/commit
fscache: Fix the volume collision wait condition
authorDavid Howells <dhowells@redhat.com>
Fri, 14 Jan 2022 13:30:17 +0000 (13:30 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 21 Jan 2022 21:36:28 +0000 (21:36 +0000)
commit0a0dc860ff6ca4d9e8e097b4fb309e5fa11fb295
treed827a31b700a4964a34963bea567e37e7457b38a
parent28d81799dd80cadd297e70ea5b3a7a45d0ebd66a
fscache: Fix the volume collision wait condition

The condition that the waits in fscache_wait_on_volume_collision() are
waiting until are inverted.  This suddenly started happening on the
upstream kernel with something like the following appearing in dmesg when
running xfstests:

CacheFiles: cachefiles: Inode already in use: Iafs,example.com,100055

Fix them by inverting the conditions.

Fixes: 3322bea87b89 ("fscache: Implement volume registration")
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
Link: https://lore.kernel.org/r/164251398010.3435901.943876048104930939.stgit@warthog.procyon.org.uk/
fs/fscache/volume.c