(I'm not sure this should happen, but it is, and this'll keep us from
OOPSing on SMP boxes until I dig deeper.)
int rc;
ENTRY;
- spin_lock(&exp->exp_connection->c_lock);
- list_del(&exp->exp_chain);
- spin_unlock(&exp->exp_connection->c_lock);
+ if (exp->exp_connection) {
+ spin_lock(&exp->exp_connection->c_lock);
+ list_del(&exp->exp_chain);
+ spin_unlock(&exp->exp_connection->c_lock);
+ }
/* XXXshaver these bits want to be hung off the export, instead of
* XXXshaver hard-coded here.