Re: [PATCH] ocfs2: Fix quota file corruption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 20, 2014 at 12:39:59PM +0100, Jan Kara wrote:
> Global quota files are accessed from different nodes. Thus we cannot
> cache offset of quota structure in the quota file after we drop our
> node reference count to it because after that moment quota structure may
> be freed and reallocated elsewhere by a different node resulting in
> corruption of quota file.
> 
> Fix the problem by clearing dq_off when we are releasing dquot
> structure. We also remove the DB_READ_B handling because it is useless -
> DQ_ACTIVE_B is set iff DQ_READ_B is set.
> 
> CC: stable@xxxxxxxxxxxxxxx
> CC: Goldwyn Rodrigues <rgoldwyn@xxxxxxx>
> CC: Mark Fasheh <mfasheh@xxxxxxx>
> Signed-off-by: Jan Kara <jack@xxxxxxx>

Thanks Jan, this looks good.

Reviewed-by: Mark Fasheh <mfasheh@xxxxxxx>
	--Mark

--
Mark Fasheh
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]