[LU-2883] File is not marked DIRTY when pages are flushed to disk after file being closed Created: 27/Feb/13  Updated: 15/Mar/13  Resolved: 15/Mar/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: Lustre 2.4.0

Type: Story Priority: Blocker
Reporter: Aurelien Degremont (Inactive) Assignee: Jinshan Xiong (Inactive)
Resolution: Fixed Votes: 0
Labels: HB, patch

Rank (Obsolete): 6961

 Description   

On client, file are flagged DIRTY when BRW are sent to OST, but this could be too late.
If all writes are done in page cache only and no flush is triggered before the file is closed by user-space program, the close RPC will be send no DIRTY flag packed in it.

SOM avoids this be sending a DONE_WRITING RPC later, after all pages have been successfully flushed. But this implies to maintain IOEpoch and so on. DIRTY flag should be kept simple.
To fix this we need to flag the file DIRTY as soon as the RPC write goes to cache. This could lead to file being DIRTY even if I/O is dropped for some reasons but this is acceptable for HSM.



 Comments   
Comment by Aurelien Degremont (Inactive) [ 27/Feb/13 ]

Patch available: http://review.whamcloud.com/5543

Comment by Peter Jones [ 01/Mar/13 ]

Jinshan

Could you please look after this patch?

Thanks

Peter

Comment by Peter Jones [ 15/Mar/13 ]

Landed for 2.4

Generated at Sat Feb 10 01:29:02 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.