[LU-6871] Clean up data structure client_bd Created: 18/Jul/15  Updated: 18/Jul/15

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Jinshan Xiong (Inactive) Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

Now client_obd data structure includes fields exclusively used by MGC, MDC, and OSC specifically, which makes this structure huge and hard to understand. It's reasonable to split those fields and have individual data structure for MGC, MDC, and OSC.

In order to avoid excessive code changes, it's reasonable to have the following definition:

struct client_obd_osc {
    struct client_obd osc_cli;
    /* OSC fields */
};

struct client_obd_mgc {
    struct client_obd mgc_cli;
    /* mgc fields */
};

...

This way the common code to handle client_obd connecting or disconnecting are still usable.


Generated at Sat Feb 10 02:04:00 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.