Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-11288 osc: re-check target versus available grant
[fs/lustre-release.git]
/
lustre
/
target
/
tgt_grant.c
diff --git
a/lustre/target/tgt_grant.c
b/lustre/target/tgt_grant.c
index
42b5a67
..
99373cf
100644
(file)
--- a/
lustre/target/tgt_grant.c
+++ b/
lustre/target/tgt_grant.c
@@
-937,6
+937,8
@@
static long tgt_grant_alloc(struct obd_export *exp, u64 curgrant,
* client would like to have by more than grants for 2 full
* RPCs
*/
+ if (want + chunk <= ted->ted_grant)
+ RETURN(0);
if (ted->ted_grant + grant > want + chunk)
grant = want + chunk - ted->ted_grant;