f2fs: flush stale issued discard candidates
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 14 Dec 2018 04:50:51 +0000 (20:50 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 26 Dec 2018 23:16:54 +0000 (15:16 -0800)
commit76c7bfb3a89371aa87bda99c8ee2611ff5150434
tree5310982a9ad5cffc7fe84fea7f4cb1ad0885dcbc
parent72691af6dbd719349c559117652a70bfd4309ad2
f2fs: flush stale issued discard candidates

Sometimes, I could observe # of issuing_discard to be 1 which blocks background
jobs due to is_idle()=false.
The only way to get out of it was to trigger gc_urgent. This patch avoids that
by checking any candidates as done in the list.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c