The `refcount` field seems to be redundant as you already have `pending_reqs`which is incremented/decremented in a similar fashion. Consider using that.