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)
commit8a1636c459cb7a4b32ba4024cd1b2ba21fba6aed
treef9c46f272b98ceb65f997f226d47da68c6fcac6b
parentcbe8260369c9f88eafa035cd327dc3e02fad528c
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