The only reply that I got to my last patchset to fix the use-after-free problem in lockd was from Christoph Hellwig, who said:
> might be better to do the refcounting outside the thread and use the > kthread api, which is something we still need to do for lockd anyway. This patchset is an attempt to implement that suggestion. The first two patches add a new svc_create_kthread() function that works like svc_create_thread, but uses the kthread API under the covers. The rest of the patches convert lockd to use this function (and fix a couple of lockd bugs). The final patch adds reference counting that's needed to fix the original problem. Unfortunately, moving the refcounting outside of the thread altogether isn't feasible for reasons outlined in description of the 6th patch. Comments and suggestions appreciated... Signed-off-by: Jeff Layton <[EMAIL PROTECTED]> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/