public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] quota: fix race condition between dqput() and dquot_mark_dquot_dirty()
@ 2023-06-30 11:08 Baokun Li
  2023-06-30 11:08 ` [PATCH v3 1/5] quota: factor out dquot_write_dquot() Baokun Li
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Baokun Li @ 2023-06-30 11:08 UTC (permalink / raw)
  To: jack
  Cc: linux-fsdevel, linux-ext4, linux-kernel, yi.zhang, yangerkun,
	chengzhihao1, yukuai3, libaokun1

Hello Honza,

This is a solution that uses dquot_srcu to avoid race condition between
dqput() and dquot_mark_dquot_dirty(). I performed a 12+h fault injection
stress test (6 VMs, 4 test threads per VM) and have not found any problems.
And I tested the performance based on the next branch (5c875096d590), this
patch set didn't degrade performance, but rather had a ~5% improvement.

V1->V2:
	Modify the solution to use dquot_srcu.
V2->V3:
	Merge some patches, optimize descriptions.
	Simplify solutions, and fix some spelling errors.

Baokun Li (5):
  quota: factor out dquot_write_dquot()
  quota: rename dquot_active() to inode_quota_active()
  quota: add new helper dquot_active()
  quota: fix dqput() to follow the guarantees dquot_srcu should provide
  quota: simplify drop_dquot_ref()

 fs/quota/dquot.c | 244 ++++++++++++++++++++++++-----------------------
 1 file changed, 125 insertions(+), 119 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-07-03 17:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-30 11:08 [PATCH v3 0/5] quota: fix race condition between dqput() and dquot_mark_dquot_dirty() Baokun Li
2023-06-30 11:08 ` [PATCH v3 1/5] quota: factor out dquot_write_dquot() Baokun Li
2023-06-30 11:08 ` [PATCH v3 2/5] quota: rename dquot_active() to inode_quota_active() Baokun Li
2023-06-30 11:08 ` [PATCH v3 3/5] quota: add new helper dquot_active() Baokun Li
2023-06-30 11:08 ` [PATCH v3 4/5] quota: fix dqput() to follow the guarantees dquot_srcu should provide Baokun Li
2023-06-30 11:08 ` [PATCH v3 5/5] quota: simplify drop_dquot_ref() Baokun Li
2023-07-03 17:01 ` [PATCH v3 0/5] quota: fix race condition between dqput() and dquot_mark_dquot_dirty() Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox