NewDreamNetwork/ceph — comment on commit f63efd534ee4236430d8699affe53c8aec599e56
File: src/osd/OSD.h line 339
By liewegas:

i like {register,unregister}_request() for stuff like this because it makes it clear that the method is not responsible for allocation/deallocation (without looking at args). can pass OpRequest instead of the ::item too.

I'd note in the comment that the lock is an inner lock and that it protects the list structure only.