aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorColy Li <[email protected]>2019-06-28 19:59:36 +0800
committerJens Axboe <[email protected]>2019-06-28 07:39:15 -0600
commit383ff2183ad16a8842d1fbd9dd3e1cbd66813e64 (patch)
treef344136d16b98123ef876d058aa7082b7226f8b6 /tools/perf/scripts/python/stackcollapse.py
parente775339e1ae1205b47d94881db124c11385e597c (diff)
bcache: check CACHE_SET_IO_DISABLE bit in bch_journal()
When too many I/O errors happen on cache set and CACHE_SET_IO_DISABLE bit is set, bch_journal() may continue to work because the journaling bkey might be still in write set yet. The caller of bch_journal() may believe the journal still work but the truth is in-memory journal write set won't be written into cache device any more. This behavior may introduce potential inconsistent metadata status. This patch checks CACHE_SET_IO_DISABLE bit at the head of bch_journal(), if the bit is set, bch_journal() returns NULL immediately to notice caller to know journal does not work. Signed-off-by: Coly Li <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions