Linux Implementation of Locking
But we need to keep track of individual locks as seen by server – get into trouble if locks.c splits/coalesces them for us (in fact, NFSv4 RFCexplicity prohibits this).
Proposal: lock() can return special status LOCK_DONE to indicate that FS has done the work to update the lock list.