> @@ -1508,7 +1509,15 @@ exi_cache_trim(struct exportinfo *exi)
>                * used for NFSAUTH_CACHE_TRIM seconds.
>                */
>               for (c = avl_first(tree); c != NULL; c = AVL_NEXT(tree, c)) {
> -                     rw_enter(&c->authc_lock, RW_WRITER);
> +                     /*
> +                      * We are being called by the kmem subsystem to reclaim
> +                      * memory so don't block if we can't get the lock.
> +                      */
> +                     if (rw_tryenter(&exi->exi_cache_lock, RW_WRITER) == 0) {

Yes, this should be the authc_lock here. This was a result of a mismerge.

---
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/38/files#r45091793
_______________________________________________
developer mailing list
developer@open-zfs.org
http://lists.open-zfs.org/mailman/listinfo/developer

Reply via email to