Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
osd_ldiskfs_write_record() tries to optimize writes to an already existing block taking no lock (which normally needed to allocate and initialize non-allocated block).
the optimization is based on the observation that this function is used with non-sparse files mostly, but sometimes this is not true. in this case we still need to grab the semaphore otherwise we risk to use a non-initialized block (before memset(0) is called).
Attachments
Issue Links
- is related to
-
LU-18763 LBUG on multiple MDS while adding OSTs - journal_dirty_metadata failed: handle type 0 started at line 1994, credits 5/0, errcode -28
-
- Resolved
-