]> git.baikalelectronics.ru Git - kernel.git/commit
NFS/filelayout: Fix racy setting of fl->dsaddr in filelayout_check_deviceid()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Jul 2017 21:00:02 +0000 (17:00 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 21 Jul 2017 18:08:45 +0000 (14:08 -0400)
commit41449290ebab3b0a0aa3beec5d7778a3b3f72586
tree514331ff7257270cc81f6963cc483b91cd0f0530
parent393a77fc91247d31f102f876e48eb0301349daaa
NFS/filelayout: Fix racy setting of fl->dsaddr in filelayout_check_deviceid()

We must set fl->dsaddr once, and once only, even if there are multiple
processes calling filelayout_check_deviceid() for the same layout
segment.

Reported-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/filelayout/filelayout.c