Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
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).