]> asedeno.scripts.mit.edu Git - linux.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)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 17 Aug 2015 18:05:43 +0000 (13:05 -0500)
commit6f536936b79bd4b5cea8fb0e5b8b0bce8cd1ea4a
treefe3006ea3e7dd028522af5aa124d7dadfd8fc0cb
parente9ae58aeee8842a50f7e199d602a5ccb2e41a95f
NFSv4.1/pNFS: Fix borken function _same_data_server_addrs_locked()

- 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.

Cc: stable@vger.kernel.org # 4.0+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs_nfs.c