Re: [PATCH v4 12/12] nvmet-fc: use RCU list iterator for assoc_list

From: Christoph Hellwig
Date: Wed Jan 31 2024 - 01:30:18 EST


> + list_for_each_entry_rcu(tmpassoc, &tgtport->assoc_list, a_list) {

please avoid the overly long line.

Also in general the (rcu)lock, list walk to find something, return
patterns tend to benefit from being factored into a little helper.
Not sure if that really fits here, though.