]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4/pNFS: Don't call _nfs4_pnfs_v3_ds_connect multiple times
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 3 Jul 2021 18:34:20 +0000 (14:34 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 8 Jul 2021 18:03:26 +0000 (14:03 -0400)
commitb571e02cbd906328adde2a3002b7d9654b07697e
treed569594827caa55e8e12d3238952a4a9c6ac9c24
parent48af7abe02fa56533b2ec5c79fc2cb775357d8ca
NFSv4/pNFS: Don't call _nfs4_pnfs_v3_ds_connect multiple times

After we grab the lock in nfs4_pnfs_ds_connect(), there is no check for
whether or not ds->ds_clp has already been initialised, so we can end up
adding the same transports multiple times.

Fixes: 44746d91dbfb ("pnfs/NFSv4.1: Add multipath capabilities to pNFS flexfiles servers over NFSv3")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs_nfs.c