commit | 40dd4b7aee1a8c3b8dac7b67ba710692d7691b77 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <trond.myklebust@primarydata.com> | Sat Jan 24 13:54:37 2015 -0500 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Sat Jan 24 18:46:48 2015 -0500 |
tree | 43d0c0de69e2d95331f62e1150dcfab70f5ec5b2 | |
parent | b4019c0e219bb1301865f8b2efedb4773526ed91 [diff] |
NFSv4.1: Optimise layout return-on-close Optimise the layout return on close code by ensuring that 1) Add a check for whether we hold a layout before taking any spinlocks 2) Only take the spin lock once 3) Use nfs_state->state to speed up open file checks Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>