mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
nfs4.1: mark layout as bad on error path in _pnfs_return_layout
Signed-off-by: Fred Isaman <iisaman@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
ea0ded748b
commit
9e2dfdb308
@ -652,6 +652,8 @@ _pnfs_return_layout(struct inode *ino)
|
||||
lrp = kzalloc(sizeof(*lrp), GFP_KERNEL);
|
||||
if (unlikely(lrp == NULL)) {
|
||||
status = -ENOMEM;
|
||||
set_bit(NFS_LAYOUT_RW_FAILED, &lo->plh_flags);
|
||||
set_bit(NFS_LAYOUT_RO_FAILED, &lo->plh_flags);
|
||||
put_layout_hdr(lo);
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user