> @@ -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(&c->authc_lock, RW_WRITER) == 0) {
> +                             exi_cache_auth_reclaim_failed++;

Don't you need to drop exi->exi_cache_lock here?

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

Reply via email to