Re: [PATCH] ext4: remove abnormal set for I_DATA_SEM subclass
From: Theodore Y. Ts'o
Date: Mon Jul 23 2018 - 12:23:44 EST
On Mon, Jul 23, 2018 at 10:48:37AM +0900, ììì/ìêì/MCìêì BSPì BSP6í(junil0814.lee@xxxxxxx) wrote:
> Then, I have a question.
> quotactl() doesn't have case only to set limits flag, the routine to set
> the DQUOT_LIMITS_ENABLED flag is under dquot_enable() function.
> According to this logic, if users makes duplicate request to set
> DQUOT_LIMITS_ENABLED flags, can lockdep make the false alarm with ext4 ?
With the upstream kernel, if you call quotactl with the Q_QUOTAON
command, it will fail with EEXIST before it ever gets to the file
system specific quota code. This happens in dquot_quota_enable() in
fs/quota/dquot.c.
I'm going to guess you didn't try to reproduce the problem with the
latest mainstream kernel, and then applied the patch, and verified the
problem went away before you submitted it?
Regards,
- Ted