Fix bug in userprog-merge where file writes were denied in the wrong thread
This commit is contained in:
@@ -260,6 +260,7 @@ lock_acquire (struct lock *lock)
|
||||
ASSERT (!lock_held_by_current_thread (lock));
|
||||
|
||||
struct thread *t = thread_current ();
|
||||
ASSERT (t->waiting_lock == NULL);
|
||||
|
||||
enum intr_level old_level = intr_disable ();
|
||||
if (lock->holder != NULL)
|
||||
|
||||
Reference in New Issue
Block a user