NFSv4.1/pNFS: Fix a race in initiate_file_draining()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 4 Jan 2016 16:28:11 +0000 (11:28 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 4 Jan 2016 17:36:12 +0000 (12:36 -0500)
commit4b0934baf9317e05c7568da1366a1d65f151d81f
tree471df710b857f344eb684e401de1a6e77697fd98
parent10335556c9e6ed2e1949fb595b7775f475299832
NFSv4.1/pNFS: Fix a race in initiate_file_draining()

Peng Tao points out that the call to pnfs_mark_matching_lsegs_return()
could race with pnfs_put_lseg(), in which case the layout segment is
cleared, but no layoutreturn will be sent.
Fix is to replace the call to pnfs_mark_matching_lsegs_invalid().

Reported-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/callback_proc.c
This page took 0.039851 seconds and 5 git commands to generate.