]> 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)
commit1b70bc6e7e9c437189538244fcdb28e4686b9c05
treef9c46f272b98ceb65f997f226d47da68c6fcac6b
parentc9c93d6fd2e3dacbfb51bf94aaeee84977f8f752
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