]> git.hungrycats.org Git - linux/commit
NFSv4.1/pNFS: Fix borken function _same_data_server_addrs_locked()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 13 Aug 2015 14:59:07 +0000 (10:59 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:33:29 +0000 (19:33 +0200)
commite8255a16c7301e4537b09c25e14e4c073d6f9308
tree875b7e68bc6c1aac2e5922e02cceabbcb81897a6
parent18ea445c33dc60bebdc55348a882b1bb172ff05a
NFSv4.1/pNFS: Fix borken function _same_data_server_addrs_locked()

commit 6f536936b79bd4b5cea8fb0e5b8b0bce8cd1ea4a upstream.

- Switch back to using list_for_each_entry(). Fixes an incorrect test
  for list NULL termination.
- Do not assume that lists are sorted.
- Finally, consider an existing entry to match if it consists of a subset
  of the addresses in the new entry.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pnfs_nfs.c