Skip to content
Snippets Groups Projects
Commit 3303cc5d authored by Phil Schwan's avatar Phil Schwan
Browse files

b=600245

This probably won't fix 600245, but it is related, and would have bitten us
once we grew to more than 32 clients with an ia32 MDS.
parent 467a512d
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,10 @@ int mds_client_add(struct mds_export_data *med, int cl_off)
LBUG();
goto repeat;
}
cl_off = word - last_rcvd_slots + bit;
cl_off = (word - last_rcvd_slots) * sizeof(unsigned long) + bit;
} else {
/* test_and_set_bit can handle cl_off > sizeof(long), so there's
* no need to frob it */
if (test_and_set_bit(cl_off, last_rcvd_slots)) {
CERROR("bit %d already set in bitmap - bad bad\n",
cl_off);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment