Kernel: InodeVMObject can't call Inode::size() with interrupts disabled

Inode::size() may try to take a lock, so we can't be calling it with
interrupts disabled.

This fixes a kernel hang when trying to execute a binary in a TmpFS.
This commit is contained in:
Andreas Kling 2020-01-03 15:40:03 +01:00
commit aba7829724
Notes: sideshowbarker 2024-07-19 10:23:51 +09:00
2 changed files with 5 additions and 4 deletions

View file

@ -22,7 +22,7 @@ public:
int release_all_clean_pages();
private:
explicit InodeVMObject(Inode&);
explicit InodeVMObject(Inode&, size_t);
explicit InodeVMObject(const InodeVMObject&);
InodeVMObject& operator=(const InodeVMObject&) = delete;