Add change missing from rw_spinlock conversion
@@ -21,7 +21,7 @@ static inline void spin_unlock(spinlock l) {
static inline void spin_rlock(rw_spinlock l) {
while (1) {
fetch_and_add(&l->readers, 1);
- if (!l->w)
+ if (!l->l.w)
return;
fetch_and_add(&l->readers, -1);
kern_pause();
