> (buf->r_locks)--;> if (!buf->r_locks)> *buflock &= ~BL_R_LOCK;> > > Or I am missing something...
buflock is per-backend flag, it's not in shmem. Backend isallowed only single lock per buffer.
Vadim