Whamcloud - gitweb
LU-18813 osd-wbcfs: refactor osd_device_alloc 06/59306/3
authorTimothy Day <timday@amazon.com>
Tue, 20 May 2025 05:09:47 +0000 (01:09 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jun 2025 23:04:24 +0000 (23:04 +0000)
commitab1a5f0cb6dc2cc431eee6540d19b4b2c89def14
tree484cf12844c4b75af97c5e6a3f641f43177b09df
parent21789dab4f9bcce587acaa33214eb0844a57929e
LU-18813 osd-wbcfs: refactor osd_device_alloc

osd_device_alloc() has improper error handling.
Refactor the function such that we properly
cleanup if __osd_device_init() fails.

Test-Parameters: trivial
Test-Parameters: testlist=sanity fstype=wbcfs mdscount=4 mdtcount=1 osscount=4 ostcount=1
Test-Parameters: testlist=sanity fstype=wbcfs combinedmdsmgs=false standalonemgs=true mdscount=1 mdtcount=1 osscount=4 ostcount=1
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Ia03eb805ef3fdc75c8490e09c66b99e6541d13fd
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59306
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Lijing Chen <lijinc@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-wbcfs/osd_handler.c