all: remove historic workaround

See 495490f4b6

The kernel does not really need this, only
in very special situations, and only when the old
ssh-based method is working as a substotite of the
modern push operations.

Essentially, this was a workaround for a workaround.

Remove this for reduction of unnecessary complexity.
This commit is contained in:
Thomas Schoebel-Theuer 2022-03-14 12:58:22 +01:00 committed by Thomas Schoebel-Theuer
parent 83c831e8db
commit 0c69984318
2 changed files with 0 additions and 33 deletions

View File

@ -779,7 +779,6 @@ enum {
CL_RES_TODO,
CL_RES_ACTUAL,
CL_DATA,
CL_WORK,
CL_SIZE,
CL_PRIMARY,
CL__FILE,
@ -5948,24 +5947,6 @@ int make_bio(struct mars_dent *dent)
return status;
}
static
int make_work(struct mars_dent *dent)
{
struct mars_rotate *rot;
if (!dent->d_parent) {
goto done;
}
rot = dent->d_parent->d_private;
if (!rot)
goto done;
activate_rot(rot);
done:
return 0;
}
static int make_replay(struct mars_dent *dent)
{
struct mars_dent *parent = dent->d_parent;
@ -7159,18 +7140,6 @@ static const struct main_class main_classes[] = {
.cl_father = CL_RESOURCE,
#ifdef RUN_DATA
.cl_forward = make_bio,
#endif
.cl_backward = kill_any,
},
/* Internal: allows extra rot activation */
[CL_WORK] = {
.cl_name = "work-",
.cl_len = 5,
.cl_type = 'l',
.cl_hostcontext = true,
.cl_father = CL_RESOURCE,
#ifdef RUN_DATA
.cl_forward = make_work,
#endif
.cl_backward = kill_any,
},

View File

@ -5755,7 +5755,6 @@ sub leave_res_phase0 {
sub leave_res_phase1 {
my ($cmd, $res) = @_;
set_link("1", "$mars/resource-$res/work-$host");
_create_delete("$mars/resource-$res/replay-$host");
_create_delete("$mars/resource-$res/data-$host");
_create_delete("$mars/resource-$res/syncstatus-$host");
@ -5827,7 +5826,6 @@ sub delete_res_phase1 {
next if $path =~ m:/(maxnr$|\.deleted-):;
_create_delete($path);
}
set_link("1", "$mars/resource-$res/work-$host");
finish_links();
_wait_delete();
_reset_resources();