[PATCH 19/21] staging: lustre: fid: fix up debugfs access to ->lcs_space

2018-02-19 Thread NeilBrown
lcs_space can change while the lock is not held if an RPC in underway. This can be detected by seq->ls_update being set. In this case, reading or writing the value should return -EBUSY. Also, the D_INFO CDEBUG() which reports the lcs_space being updated never fires, as it tests the wrong value

[PATCH 19/21] staging: lustre: fid: fix up debugfs access to ->lcs_space

2018-02-19 Thread NeilBrown
lcs_space can change while the lock is not held if an RPC in underway. This can be detected by seq->ls_update being set. In this case, reading or writing the value should return -EBUSY. Also, the D_INFO CDEBUG() which reports the lcs_space being updated never fires, as it tests the wrong value