Whamcloud - gitweb
LU-15067 lod: fix error handling in lod_new_pool 37/45137/4
authorSergey Cheremencev <sergey.cheremencev@hpe.com>
Wed, 23 Jun 2021 15:08:00 +0000 (18:08 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 Oct 2021 00:37:45 +0000 (00:37 +0000)
commitb6ac7490f3a30c80dba8453dc7240a56780b953b
tree8de8887c4dda297e132b1b468e7ab356d9588bdc
parent4bd9b524537bce27fb7f53cf481b78290cd55a1d
LU-15067 lod: fix error handling in lod_new_pool

- correct error handling in lod_new_pool - ENOMEM
 from tgt_pool_init may cause incorrect pool_count.
- optimisation in lu_tgt_pool_add. Do not extend
 a pool, if the target is already exists.

HPE-bug-id: LUS-6995
Change-Id: I0ea00d335217f3994334bd02ae36c34653e7da98
Reviewed-by: Alexander Zarochentsev <c17826@cray.com>
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Signed-off-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-on: https://review.whamcloud.com/45137
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_pool.c
lustre/lov/lov_pool.c
lustre/obdclass/lu_tgt_pool.c