On Fri, Dec 13, 2013 at 06:12:43AM -0800, Christoph Hellwig wrote: > > list_for_each_entry(sop, &nn->ownerstr_hashtbl[hashval], so_strhash) { > > if (sop->so_is_open_owner) > > continue; > > + if (sop->so_client->cl_minorversion) > > + continue; > > if (!same_owner_str(sop, owner, clid)) > > continue; > > list_for_each_entry(stp, &sop->so_stateids, > > This needs at least a good comment as it's not very obvious from > glancing over the code. That being said is same_owner_str so much > overhead that it's really worth it? > Right, this seems redundant with the cli_id comparison in same_owner_str. That could be reordered to ensure it precedes the memcmp if we think that's worthwhile. --b. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html