]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pNFS: Tighten up locking around DS commit buckets
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 3 Aug 2015 21:38:33 +0000 (17:38 -0400)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:21:57 +0000 (17:21 -0500)
commitb8e8dbbf810328e98ee7fb0779f98bc5c8cbaa8f
tree4e6f6e2bdf069722af6c7ac67889ed4f591f8f95
parente632d702cff5e9472bff431554b4878ee0924b0b
pNFS: Tighten up locking around DS commit buckets

Orabug: 25308025

[ Upstream commit 27571297a7e9a2a845c232813a7ba7e1227f5ec6 ]

I'm not aware of any bugreports around this issue, but the locking
around the pnfs_commit_bucket is inconsistent at best. This patch
tightens it up by ensuring that the 'bucket->committing' list is always
changed atomically w.r.t. the 'bucket->clseg' layout segment tracking.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 94d06a437eb0ad1a492ed75f929d82715b6c05f8)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
fs/nfs/pnfs_nfs.c