]> git.baikalelectronics.ru Git - kernel.git/commit
pnfs: layoutret_on_setattr
authorBenny Halevy <bhalevy@panasas.com>
Wed, 14 Jul 2010 19:43:57 +0000 (15:43 -0400)
committerBoaz Harrosh <bharrosh@panasas.com>
Sun, 29 May 2011 17:54:36 +0000 (20:54 +0300)
commitb2b2234c05f07b054947add854e858834b1bfbc4
treef9c46f272b98ceb65f997f226d47da68c6fcac6b
parent0c1e31e8a1d644704d08f76f8aebd7d1f723e3e9
pnfs: layoutret_on_setattr

With the objects layout security model, we have object capabilities
that are associated with the layout and we anticipate that the server
will issue a cb_layoutrecall for any setattr that changes security
related attributes (user/group/mode/acl) or truncates the file.

Therefore, the layout is returned before issuing the setattr to avoid
the anticipated cb_layoutrecall.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
fs/nfs/nfs4proc.c
fs/nfs/objlayout/objio_osd.c
fs/nfs/pnfs.h