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)
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

Simple merge
Simple merge
diff --cc fs/nfs/pnfs.h
Simple merge