On Mon, 18 Jun 2018 04:12:17 -0700, Christoph Hellwig wrote: > On Sun, Jun 17, 2018 at 12:40:56PM +0800, Zhu Lingshan wrote: > > Hello Mike and Christoph, > > Thanks Mike's comment inspired me, if I understand this correctly, it is > > suggested to implement this whole solution in kernel, avoid > > splitting PRG handling in both kernel and userspace, make it not that > > complex. I can try to implement this by sending OSD requests > > from kernel side, then we don't need tcmu-runner supporting is, no need to > > use netlink to exchange information with userspace, pure kernel code, seems > > much more simple. Do you think this may be better? > > Yes. And SuSE actually ships such a backend (originally writen by > Mike), although it would still need some work to get into shape. FWIW, the kernel backend is also shipped by petasan. I'd be happy to restart efforts with Mike to get this in shape for mainline. The current target_core_rbd PR implementation is suboptimal in that it duplicates quite a bit of protocol logic from target_core_pr. Cheers, David