summaryrefslogtreecommitdiff
path: root/fs/fscache/operation.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2020-03-27 23:23:14 +0300
committerBob Peterson <rpeterso@redhat.com>2020-03-30 15:55:35 +0300
commit75b46c437f6b0f8e37032a407c7373f85f5c26a8 (patch)
tree75261c17c3143398191bf0dca2ff4e391bca79d9 /fs/fscache/operation.c
parentc953a735c7d4d0d1b092b5c594258a07a84149db (diff)
downloadlinux-75b46c437f6b0f8e37032a407c7373f85f5c26a8.tar.xz
gfs2: Fix oversight in gfs2_ail1_flush
Ordinarily, function gfs2_ail1_start_one issues a write request for one item on the ail1 list, then returns -EBUSY. This makes the caller, gfs2_ail1_flush, loop around and start another. However, it was not clearing the -EBUSY return code each time through the loop. So on rare occasions, like when the wbc runs out of nr_to_write, it remained set to -EBUSY, which triggered an error and withdraw. This patch sets the return code to 0 each time through the restart loop so this won't happen anymore. Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/fscache/operation.c')
0 files changed, 0 insertions, 0 deletions