On Tue, Sep 03, 2019 at 12:15:48PM -0700, Sagi Grimberg wrote: > >> The nvme_cleanup_cmd function should be called to avoid resource leakage >> (it's the opposite to nvme_setup_cmd). Fix the error flow during command >> submission and also fix the missing call in command completion. > > Is it always called with nvme_complete_rq? Why not just put it there? Yes, unless I am missing something we could call nvme_cleanup_cmd at the beginning of nvme_complete_rq. Max, can you send one series for all the nvme_cleanup_cmd fixes and cleanups and split that from the PI work? That might be a little less confusing.