Closed iaoing closed 2 years ago
The function nova_update_inode_checksum, Line 395, Line 526, does flush pi with a fence flag. The subsequent nova_flush_buffer function, Line 402, Line 533, does the flush and fence again. https://github.com/NVSL/linux-nova/blob/9b8cfca971d3239e0f837d4d5fdd8d9b6a16e4b9/fs/nova/gc.c#L392-L403
nova_update_inode_checksum
nova_flush_buffer
https://github.com/NVSL/linux-nova/blob/9b8cfca971d3239e0f837d4d5fdd8d9b6a16e4b9/fs/nova/gc.c#L523-L534
Similarly, issuing PERSISTENT_BARRIER after calling nova_update_inode_checksum.
PERSISTENT_BARRIER
https://github.com/NVSL/linux-nova/blob/9b8cfca971d3239e0f837d4d5fdd8d9b6a16e4b9/fs/nova/namei.c#L102-L104
Thanks for the report. Fixed.
The function
nova_update_inode_checksum
, Line 395, Line 526, does flush pi with a fence flag. The subsequentnova_flush_buffer
function, Line 402, Line 533, does the flush and fence again. https://github.com/NVSL/linux-nova/blob/9b8cfca971d3239e0f837d4d5fdd8d9b6a16e4b9/fs/nova/gc.c#L392-L403https://github.com/NVSL/linux-nova/blob/9b8cfca971d3239e0f837d4d5fdd8d9b6a16e4b9/fs/nova/gc.c#L523-L534
Similarly, issuing
PERSISTENT_BARRIER
after callingnova_update_inode_checksum
.https://github.com/NVSL/linux-nova/blob/9b8cfca971d3239e0f837d4d5fdd8d9b6a16e4b9/fs/nova/namei.c#L102-L104