Fix generic/390 failure due to quota release after freeze
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 14 repliesIn review
- v11 patch 7 repliesSuperseded
Changes in v2 from the cover letter
* Patch 1: Move flush_delayed_work() to start of function
* Patch 2: Guard ext4_release_dquot against freeze
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | quota: flush quota_release_work upon quota writebackfs/ | +2 | 3 replies | |
| 2/2 | ext4: protect ext4_release_dquot against freezingfs/ | +17 | 10 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Jan Kara | Baokun Li | Disha Goel |
|---|---|---|---|
| 1/2 | R-b | T-b | |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v2 0/2] Fix generic/390 failure due to quota release after freeze
Changes since v1:
* Patch 1: Move flush_delayed_work() to start of function
* Patch 2: Guard ext4_release_dquot against freeze
Regarding patch 2, as per my understanding of the journalling code, right now ext4_release_dquot() can only be called from the quota_realease_work workqueue and hence ideally should never have a journal open but to future-proof it we make sure the journal is not opened when calling sb_start_inwrite().
** Original Cover **
Recently we noticed generic/390 failing on powerpc systems. This test basically does a freeze-unfreeze loop in parallel with fsstress on the FS to detect any races in the code paths.
We noticed that the test started failing due to kernel WARN_ONs because quota_release_work workqueue started executing while the FS was frozen which led to creating new transactions in ext4_release_quota.
Most of the details are in the bug however I'd just like to add that I'm completely new to quota code so the patch, although fixing the issue, might be not be logically the right thing to do. So reviews and suggestions are welcome.
Also, I can only replicate this race on one of my machines reliably and does not appear on others. I've tested with with fstests -g quota and don't see any new failures.
Ojaswin Mujoo (2):
quota: flush quota_release_work upon quota writeback
ext4: protect ext4_release_dquot against freezing
fs/ext4/super.c | 17 +++++++++++++++++ fs/quota/dquot.c | 2 ++ 2 files changed, 19 insertions(+)
Signature · 1 line
2.43.5