Merge branch 'linux-arc' into refs/top-bases/linux-zfs-branch
This commit is contained in:
commit
05fafc638f
|
@ -149,9 +149,9 @@ extern void vpanic(const char *, __va_list);
|
||||||
/*
|
/*
|
||||||
* Threads
|
* Threads
|
||||||
*/
|
*/
|
||||||
|
#define curthread ((void *)(uintptr_t)pthread_self())
|
||||||
/* XXX: not portable */
|
#define tsd_get(key) pthread_getspecific(key)
|
||||||
#define curthread ((void *)(uintptr_t)pthread_self())
|
#define tsd_set(key, val) pthread_setspecific(key, val)
|
||||||
|
|
||||||
typedef struct kthread kthread_t;
|
typedef struct kthread kthread_t;
|
||||||
typedef void (*thread_func_t)(void *);
|
typedef void (*thread_func_t)(void *);
|
||||||
|
|
|
@ -120,7 +120,7 @@ rrn_find_and_remove(rrwlock_t *rrl)
|
||||||
rrw_node_t *prev = NULL;
|
rrw_node_t *prev = NULL;
|
||||||
|
|
||||||
if (refcount_count(&rrl->rr_linked_rcount) == 0)
|
if (refcount_count(&rrl->rr_linked_rcount) == 0)
|
||||||
return (NULL);
|
return (B_FALSE);
|
||||||
|
|
||||||
for (rn = tsd_get(rrw_tsd_key); rn != NULL; rn = rn->rn_next) {
|
for (rn = tsd_get(rrw_tsd_key); rn != NULL; rn = rn->rn_next) {
|
||||||
if (rn->rn_rrl == rrl) {
|
if (rn->rn_rrl == rrl) {
|
||||||
|
|
Loading…
Reference in New Issue