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:
Родитель
ea0ded748b
Коммит
9e2dfdb308
|
@ -652,6 +652,8 @@ _pnfs_return_layout(struct inode *ino)
|
||||||
lrp = kzalloc(sizeof(*lrp), GFP_KERNEL);
|
lrp = kzalloc(sizeof(*lrp), GFP_KERNEL);
|
||||||
if (unlikely(lrp == NULL)) {
|
if (unlikely(lrp == NULL)) {
|
||||||
status = -ENOMEM;
|
status = -ENOMEM;
|
||||||
|
set_bit(NFS_LAYOUT_RW_FAILED, &lo->plh_flags);
|
||||||
|
set_bit(NFS_LAYOUT_RO_FAILED, &lo->plh_flags);
|
||||||
put_layout_hdr(lo);
|
put_layout_hdr(lo);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче