static void mgs_nidtbl_fini_fs(struct fs_db *fsdb)
{
struct mgs_nidtbl *tbl = &fsdb->fsdb_nidtbl;
- struct list_head head = LIST_HEAD_INIT(head);
+ LIST_HEAD(head);
mutex_lock(&tbl->mn_lock);
tbl->mn_nr_targets = 0;
set_user_nice(current, -2);
mgc_fsname2resid(fsdb->fsdb_name, &resid, CONFIG_T_RECOVER);
while (1) {
- struct l_wait_info lwi = { 0 };
+ wait_event_idle(fsdb->fsdb_notify_waitq,
+ fsdb->fsdb_notify_stop ||
+ atomic_read(&fsdb->fsdb_notify_phase));
- l_wait_event(fsdb->fsdb_notify_waitq,
- fsdb->fsdb_notify_stop ||
- atomic_read(&fsdb->fsdb_notify_phase),
- &lwi);
if (fsdb->fsdb_notify_stop)
break;
{
struct mgs_export_data *data = &exp->u.eu_mgs_data;
struct mgs_fsc *fsc, *tmp;
- struct list_head head = LIST_HEAD_INIT(head);
+ LIST_HEAD(head);
spin_lock(&data->med_lock);
list_splice_init(&data->med_clients, &head);