]> git.karo-electronics.de Git - linux-beck.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)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 12 Aug 2015 18:56:18 +0000 (14:56 -0400)
commit27571297a7e9a2a845c232813a7ba7e1227f5ec6
treef9023b29be9918f438feb56a21126296a3fd8c9a
parent0847ef88c3c9318d85e92fc42369df0e0190e1ab
pNFS: Tighten up locking around DS commit buckets

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>
fs/nfs/pnfs_nfs.c