]> www.infradead.org Git - users/jedix/linux-maple.git/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:26:08 +0000 (19:26 +0200)
commit0bdce6a850fe41e414700193996165fd787352f4
treef73283393bd1301bf803983b20de6cc2c8e9f575
parente204275a010138f27bca6bdc24ae6b042cd568e8
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