X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Fmount_lustre.c;h=374815e7402d4d77020ce7d9afce41481dd74383;hp=fe1920ff03fe0784182b7192239b5c4d87303efe;hb=d8d9b78a5c08eb1d938ab9e3bdaf7f756bfbb5ec;hpb=c7d8ce29cc95e9141df7c227afc65f88602a966f diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index fe1920f..374815e 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -514,6 +514,12 @@ int main(int argc, char *const argv[]) progname = strrchr(argv[0], '/'); progname = progname ? progname + 1 : argv[0]; + /* + * LU-1279. When LNET modules have not loaded, and mounting multiple + * targets at the same time could fail. + */ + rc = system("/sbin/modprobe ptlrpc 2>&1 > /dev/null"); + set_defaults(&mop); rc = osd_init();