I remove nova_memunlock_inode(sb, pi, &irq_flags) and nova_memlock_inode(sb, pi, &irq_flags) around nova_update_inode(sb, inode, pi, &update, 1) in function do_nova_inplace_file_write, and run fio with wprotect enabled, expecting a kernel panic or something else:
I remove
nova_memunlock_inode(sb, pi, &irq_flags)
andnova_memlock_inode(sb, pi, &irq_flags)
aroundnova_update_inode(sb, inode, pi, &update, 1)
in functiondo_nova_inplace_file_write
, and runfio
withwprotect
enabled, expecting a kernel panic or something else:But nothing happens, the command simply finishes successfully. Is there something I miss?