Revert "Introduce and use sleeplocks instead of BUSY flags"
My changes have a race with re-used bufs and the code doesn't seem to get shorter
Keep the changes that fixed ip->off race
This reverts commit 3a5fa7ed90.
Conflicts:
defs.h
file.c
file.h
This commit is contained in:
parent
22f7db5336
commit
1ddfbbb194
12 changed files with 61 additions and 105 deletions
5
defs.h
5
defs.h
|
|
@ -5,7 +5,6 @@ struct inode;
|
|||
struct pipe;
|
||||
struct proc;
|
||||
struct spinlock;
|
||||
struct sleeplock;
|
||||
struct stat;
|
||||
struct superblock;
|
||||
|
||||
|
|
@ -130,10 +129,6 @@ void initlock(struct spinlock*, char*);
|
|||
void release(struct spinlock*);
|
||||
void pushcli(void);
|
||||
void popcli(void);
|
||||
void initsleeplock(struct sleeplock*);
|
||||
void acquire_sleeplock(struct sleeplock*, struct spinlock*);
|
||||
void release_sleeplock(struct sleeplock*);
|
||||
int acquired_sleeplock(struct sleeplock*);
|
||||
|
||||
// string.c
|
||||
int memcmp(const void*, const void*, uint);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue