Created attachment 10051 [details] .exe files used to test byte range locks. Observing increasing response times for unlock requests when running a byte range lock test. From the debug logs and code-walk through, I found that pending wait entries are not being cleanup when they get reprocessed successfully. Due to this all pending entries piling up and causing the delay in completing the byte range unlock request.
Created attachment 10055 [details] Patch for byte range unlock issue. Here I am attaching the patch which fixes this issue. brl_lock_cancel() is called on successful reprocess of blocking lock requests. Tested these changes with the help of attached test scripts in the bug. No degradation observed on consecutive runs. Please let me know if this looks good.
Sorry, still working on the patch for master. I'm going to simplify this code a bit more. Cheers, Jeremy.
Created attachment 10056 [details] git-am fix for master. Here's the fix I'd like to use. A little more extensive than your change Hemanth, but I think it simplifies all the logic around here. Once it passes make test in master I'll submit to samba-technical. If you can test it with your test case as well I'd appreciate it ! Thanks, Jeremy.
(In reply to comment #3) > Created attachment 10056 [details] > git-am fix for master. > > Here's the fix I'd like to use. A little more extensive than your change > Hemanth, but I think it simplifies all the logic around here. Once it passes > make test in master I'll submit to samba-technical. > > If you can test it with your test case as well I'd appreciate it ! > > Thanks, > > Jeremy. Thanks Jeremy. I have tested the changes from end. Results are good. Patch also looks clean. Thanks, Hemanth.
Created attachment 10063 [details] git-am fix for 4.1.next and 4.0.next. Patchset that went into master, cherry-picked for 4.1.next and 4.0.next. Ira, if you can +1 it we'll get it into the next releases. Thanks, Jeremy.
Re-assigning to Karolin for inclusion in 4.0.next, 4.1.next.
(In reply to comment #6) > Re-assigning to Karolin for inclusion in 4.0.next, 4.1.next. Pushed to autobuild-v-4-[0|1]-test.
(In reply to comment #7) > (In reply to comment #6) > > Re-assigning to Karolin for inclusion in 4.0.next, 4.1.next. > > Pushed to autobuild-v-4-[0|1]-test. Pushed to both branches. Closing out bug report. Thanks!