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-2986 mdc: Kernel Oops on ioctl LL_IOC_GET_MDTIDX
[fs/lustre-release.git]
/
lustre
/
mdc
/
mdc_request.c
diff --git
a/lustre/mdc/mdc_request.c
b/lustre/mdc/mdc_request.c
index
9f3dea4
..
f068026
100644
(file)
--- a/
lustre/mdc/mdc_request.c
+++ b/
lustre/mdc/mdc_request.c
@@
-225,6
+225,11
@@
int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data,
int rc;
ENTRY;
+ /* Single MDS without an LMV case */
+ if (op_data->op_flags & MF_GET_MDT_IDX) {
+ op_data->op_mds = 0;
+ RETURN(0);
+ }
*request = NULL;
req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_MDS_GETATTR);
if (req == NULL)