You're right that isn't what changed. This behavior, however, is one created by the threading changes, in fact. Since I wrote the ioq, I do know what it doesm, in general. Matt On Sat, Sep 15, 2018 at 1:45 PM, William Allen Simpson <william.allen.simpson@gmail.com> wrote:
On 9/14/18 11:00 PM, Matt Benjamin wrote:
That's how it was when the ioq was introduced. I think Daniel has a fix in mind, but by all means, send this too.
I have gone back and looked, and there is nothing in the historical code that supports this statement. There was no IOQ in the SVCXPRT.
Nor would that be a good idea. The IOQ structure is designed to handle a stream made up of segments. It is utilized per nfs_req, not by the SVCXPRT.
On Fri, Sep 14, 2018 at 10:42 PM, Malahal Naineni <malahal@gmail.com> wrote:
I would put the IOQ in xprt itself as you did. Please post the patch and let us review it.
Putting an IOQ in the SVCXPRT would require constant lock thrashing, because each svc_req is on a separate asynchronous thread. You can have many simultaneous svc_req going....
I've spent an awful lot of time getting rid of the terrible locking problems we had in the past. Please don't do that again!
(Malahal had helped identify those hot locks in the past.)
-- Matt Benjamin Red Hat, Inc. 315 West Huron Street, Suite 140A Ann Arbor, Michigan 48103 http://www.redhat.com/en/technologies/storage tel. 734-821-5101 fax. 734-769-8938 cel. 734-216-5309