Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
a2d062ff
Commit
a2d062ff
authored
20 years ago
by
Eric Barton
Browse files
Options
Downloads
Patches
Plain Diff
* correction to ranal GET (isn't reading the code great :)
parent
7f1aed86
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lnet/klnds/ralnd/ralnd_cb.c
+26
-11
26 additions, 11 deletions
lnet/klnds/ralnd/ralnd_cb.c
with
26 additions
and
11 deletions
lnet/klnds/ralnd/ralnd_cb.c
+
26
−
11
View file @
a2d062ff
...
@@ -278,9 +278,9 @@ kranal_setup_phys_buffer (kra_tx_t *tx, int nkiov, ptl_kiov_t *kiov,
...
@@ -278,9 +278,9 @@ kranal_setup_phys_buffer (kra_tx_t *tx, int nkiov, ptl_kiov_t *kiov,
}
}
static
inline
int
static
inline
int
kranal_setup_buffer
(
kra_tx_t
*
tx
,
int
niov
,
kranal_setup_
rdma_
buffer
(
kra_tx_t
*
tx
,
int
niov
,
struct
iovec
*
iov
,
ptl_kiov_t
*
kiov
,
struct
iovec
*
iov
,
ptl_kiov_t
*
kiov
,
int
offset
,
int
nob
)
int
offset
,
int
nob
)
{
{
LASSERT
((
iov
==
NULL
)
!=
(
kiov
==
NULL
));
LASSERT
((
iov
==
NULL
)
!=
(
kiov
==
NULL
));
...
@@ -633,7 +633,7 @@ kranal_do_send (lib_nal_t *nal,
...
@@ -633,7 +633,7 @@ kranal_do_send (lib_nal_t *nal,
if
(
tx
==
NULL
)
if
(
tx
==
NULL
)
return
PTL_FAIL
;
return
PTL_FAIL
;
rc
=
kranal_setup_buffer
(
tx
,
niov
,
iov
,
kiov
,
offset
,
nob
);
rc
=
kranal_setup_
rdma_
buffer
(
tx
,
niov
,
iov
,
kiov
,
offset
,
nob
);
if
(
rc
!=
0
)
{
if
(
rc
!=
0
)
{
kranal_tx_done
(
tx
,
rc
);
kranal_tx_done
(
tx
,
rc
);
return
PTL_FAIL
;
return
PTL_FAIL
;
...
@@ -650,16 +650,31 @@ kranal_do_send (lib_nal_t *nal,
...
@@ -650,16 +650,31 @@ kranal_do_send (lib_nal_t *nal,
}
}
case
PTL_MSG_GET
:
case
PTL_MSG_GET
:
if
(
kiov
==
NULL
&&
/* not paged */
LASSERT
(
niov
==
0
);
nob
<=
RANAL_FMA_MAX_DATA
&&
/* small enough */
LASSERT
(
nob
==
0
);
nob
<=
kranal_tunables
.
kra_max_immediate
)
/* We have to consider the eventual sink buffer rather than any
break
;
/* send IMMEDIATE */
* payload passed here (there isn't any, and strictly, looking
* inside libmsg is a layering violation). We send a simple
* IMMEDIATE GET if the sink buffer is mapped already and small
* enough for FMA */
if
((
libmsg
->
md
->
options
&
PTL_MD_KIOV
)
==
0
&&
libmsg
->
md
->
length
<=
RANAL_FMA_MAX_DATA
&&
libmsg
->
md
->
length
<=
kranal_tunables
.
kra_max_immediate
)
break
;
tx
=
kranal_new_tx_msg
(
!
in_interrupt
(),
RANAL_MSG_GET_REQ
);
tx
=
kranal_new_tx_msg
(
!
in_interrupt
(),
RANAL_MSG_GET_REQ
);
if
(
tx
==
NULL
)
if
(
tx
==
NULL
)
return
PTL_NO_SPACE
;
return
PTL_NO_SPACE
;
rc
=
kranal_setup_buffer
(
tx
,
niov
,
iov
,
kiov
,
offset
,
nob
);
if
((
libmsg
->
md
->
options
&
PTL_MD_KIOV
)
==
0
)
rc
=
kranal_setup_virt_buffer
(
tx
,
libmsg
->
md
->
md_niov
,
libmsg
->
md
->
md_iov
.
iov
,
0
,
libmsg
->
md
->
length
);
else
rc
=
kranal_setup_phys_buffer
(
tx
,
libmsg
->
md
->
md_niov
,
libmsg
->
md
->
md_iov
.
kiov
,
0
,
libmsg
->
md
->
length
);
if
(
rc
!=
0
)
{
if
(
rc
!=
0
)
{
kranal_tx_done
(
tx
,
rc
);
kranal_tx_done
(
tx
,
rc
);
return
PTL_FAIL
;
return
PTL_FAIL
;
...
@@ -692,7 +707,7 @@ kranal_do_send (lib_nal_t *nal,
...
@@ -692,7 +707,7 @@ kranal_do_send (lib_nal_t *nal,
if
(
tx
==
NULL
)
if
(
tx
==
NULL
)
return
PTL_NO_SPACE
;
return
PTL_NO_SPACE
;
rc
=
kranal_setup_buffer
(
tx
,
niov
,
iov
,
kiov
,
offset
,
nob
);
rc
=
kranal_setup_
rdma_
buffer
(
tx
,
niov
,
iov
,
kiov
,
offset
,
nob
);
if
(
rc
!=
0
)
{
if
(
rc
!=
0
)
{
kranal_tx_done
(
tx
,
rc
);
kranal_tx_done
(
tx
,
rc
);
return
PTL_FAIL
;
return
PTL_FAIL
;
...
@@ -815,7 +830,7 @@ kranal_recvmsg (lib_nal_t *nal, void *private, lib_msg_t *libmsg,
...
@@ -815,7 +830,7 @@ kranal_recvmsg (lib_nal_t *nal, void *private, lib_msg_t *libmsg,
if
(
tx
==
NULL
)
if
(
tx
==
NULL
)
return
PTL_NO_SPACE
;
return
PTL_NO_SPACE
;
rc
=
kranal_setup_buffer
(
tx
,
niov
,
iov
,
kiov
,
offset
,
mlen
);
rc
=
kranal_setup_
rdma_
buffer
(
tx
,
niov
,
iov
,
kiov
,
offset
,
mlen
);
if
(
rc
!=
0
)
{
if
(
rc
!=
0
)
{
kranal_tx_done
(
tx
,
rc
);
kranal_tx_done
(
tx
,
rc
);
return
PTL_FAIL
;
return
PTL_FAIL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment