Swapnil Pimpale (Inactive)
added a comment - Hi,
I have added a fix for the incorrect return value bug.
The patch is here --> http://review.whamcloud.com/#/c/7522/
On this is addressed, there is the issue that ptlrpcd_addref() increments ptlrpc_users regardless of whether ptlrpcd_init() succeeded.
Also what is the point of calling ptlrpcd_addref() from the obd_setup() methods? ptlrpcd_addref() and hence ptlrpcd_init() is already called from ptlrpc_init(). All of the OBD modules depend on ptlrpc anyway. Is this for liblustre? Can all of theses ptlrcpd_addref() calls just be removed?
John Hammond
added a comment - On this is addressed, there is the issue that ptlrpcd_addref() increments ptlrpc_users regardless of whether ptlrpcd_init() succeeded.
Also what is the point of calling ptlrpcd_addref() from the obd_setup() methods? ptlrpcd_addref() and hence ptlrpcd_init() is already called from ptlrpc_init(). All of the OBD modules depend on ptlrpc anyway. Is this for liblustre? Can all of theses ptlrcpd_addref() calls just be removed?
Patch landed to master.