diff --git a/scst/include/backport.h b/scst/include/backport.h index e9917db77..21542ef27 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -356,6 +356,14 @@ static inline int __must_check kref_get_unless_zero(struct kref *kref) } #endif +/* */ + +/* See also commit 207205a2ba26 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) +#define kthread_create_on_node(threadfn, data, node, namefmt, arg...)\ + kthread_create((threadfn), (data), ##arg) +#endif + /* */ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) && \