How about the following minor change to the recent patch from Paulo - handling the case where we are doing a whole file lock (BSD lock, flock) - in which case the original patch would send length of 0 (but we went to send a byte range lock of the whole file)? +static inline u64 cifs_flock_len(struct file_lock *fl) +{ + return fl->fl_end == OFFSET_MAX ? fl->fl_end - fl->fl_start: fl->fl_end - fl->fl_start + 1; +} instead of Paulo's original patch +static inline u64 cifs_flock_len(struct file_lock *fl) +{ + return fl->fl_end == OFFSET_MAX ? 0: fl->fl_end - fl->fl_start + 1; +} -- Thanks, Steve