From d85aec2689c4250d0384904bdc11aa618c726bec Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Sat, 17 Feb 2024 10:48:18 +0800 Subject: lab lock: update bcache lock name --- kernel/bio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel') diff --git a/kernel/bio.c b/kernel/bio.c index a1f4474..153c2f2 100644 --- a/kernel/bio.c +++ b/kernel/bio.c @@ -52,8 +52,8 @@ binit(void) // init each bucket for (int i = 0; i < N_BUCKETS; i++) { - static char lock_name[16]; - snprintf(lock_name, sizeof(lock_name), "bio.bucket.%d", i); + static char lock_name[20]; + snprintf(lock_name, sizeof(lock_name), "bcache.bucket.%d", i); initlock(&bcache.buckets[i].lock, lock_name); bcache.buckets[i].head.prev = &bcache.buckets[i].head; bcache.buckets[i].head.next = &bcache.buckets[i].head; -- cgit v1.2.3