]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/cache/pwl: fix bug of flush request blocked by deferd IO 40208/head
authorYin Congmin <congmin.yin@intel.com>
Thu, 18 Mar 2021 13:33:07 +0000 (21:33 +0800)
committerYin Congmin <congmin.yin@intel.com>
Fri, 19 Mar 2021 09:18:01 +0000 (17:18 +0800)
commit6583182f624386bfbb7375fb227dfb77b0a3209d
tree00715f1eed0d00dfeecbeed06e95794b30b2b2c3
parent1af1a7cf694688ca17b9e64d19edb3cbffe5d5c9
librbd/cache/pwl: fix bug of flush request blocked by deferd IO

Flush requests do not need to be queued behind the defer_io queue,
should be issued immediately. Otherwise, there will be a deadlock
scenario in which dirty data is waiting for flush req, flush req is
waiting for defer_io empty, and defer_io is waiting for dirty data
persistence to release space. So this sometimes occur when the cache
is small but the IO is large or the queue depth is large.

Signed-off-by: Yin Congmin <congmin.yin@intel.com>
src/librbd/cache/pwl/AbstractWriteLog.cc