Description
The DOM lock bit is taken opportunistically at open to improve possible read/write access but it uses PW lock mode and can be combined with other lock bits. The proposed improvements are:
1. when file is closed and there were no read/write, drop DOM bit and downgrade lock mode to less strict lock mode (CR/CW)
2. if there was write then write data on close (LU-11428) and also downgrade lock mode to PR
3. if DOM bit is dropped and there are other bits remains in lock - downgrade lock mode too
Attachments
Issue Links
- is related to
-
LU-11428 Writeback on close for DoM
-
- Open
-
It might be related, but dom_lock=trylock behaviors chnaged in recent codes?
I'm testing on 2.15.0-RC3.
Dom lock mode "trylock" which is default.
Create new directory and configured dom for all < 1MB files.
Create 10000 files on client c01
locks were taken for 10000 files which is expected.
Another client ec02 issue "stats" to all 10000 files which client ec01 created above.
all locks for 10000 files on ec01 were canceled which is also expected.
But, why it requires 3 x locks against 10000 files for "stats"?
This was same scenarios of what I original tested in LU-12325, but different results and behaviors..
When I tested before, second client took same number of locks of target files for "stat". But, now it takes 3x..