it->d.lustre.it_remote_lock_mode = it->d.lustre.it_lock_mode;
}
- it->d.lustre.it_lock_handle = plock.cookie;
- it->d.lustre.it_lock_mode = pmode;
+ if (pmode) {
+ it->d.lustre.it_lock_handle = plock.cookie;
+ it->d.lustre.it_lock_mode = pmode;
+ }
EXIT;
out_free_op_data: