summaryrefslogtreecommitdiffstats
path: root/fs/devpts
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2014-07-03 13:07:45 +0800
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-07-12 18:22:41 -0400
commitc8a3292d246f3ed326698ed6acf3286c62b7bf11 (patch)
tree076a698314f3ae471eb849580996d0b4a221b13c /fs/devpts
parentf3792d63d2a377b7cbe91a204e9582c4cf831eb3 (diff)
downloadlinux-c8a3292d246f3ed326698ed6acf3286c62b7bf11.tar.bz2
pnfs/filelayout: fix race between mark_request_commit and scan_commit_lists
We need to hold cinfo lock while setting bucket->wlseg and adding req to nwritten list at the same time. Otherwise there might be a window where nwritten list is empty yet we set bucket->wlseg, in which case ff_layout_scan_ds_commit_list() may end up clearing bucket->wlseg incorrectly, casuing client to oops later on. This was found when testing flexfile layout but filelayout has the same problem. Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/devpts')
0 files changed, 0 insertions, 0 deletions