lkml.org 
[lkml]   [2023]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 0/5] quota: fix race condition between dqput() and dquot_mark_dquot_dirty()
Hello!

On Fri 30-06-23 19:08:17, Baokun Li wrote:
> 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.
>

Thanks! I've added the patches to my tree.

Honza

> 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
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR

\
 
 \ /
  Last update: 2023-07-03 19:02    [W:0.043 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site