Re: [RFC PATCH 3/5] streamline REQ_OP_READ-WRITE access

2018-08-06 Thread Douglas Gilbert
On 2018-08-06 01:41 AM, Damien Le Moal wrote: On 2018/08/06 13:51, Douglas Gilbert wrote: Make the two block layer operations most frequently used (REQ_OP_READ and REQ_OP_WRITE) bypass the switch statements in the submission and response paths. Assume these two enums are 0 and 1 which allows a s

Re: [RFC PATCH 3/5] streamline REQ_OP_READ-WRITE access

2018-08-05 Thread Damien Le Moal
On 2018/08/06 13:51, Douglas Gilbert wrote: > Make the two block layer operations most frequently used (REQ_OP_READ > and REQ_OP_WRITE) bypass the switch statements in the submission and > response paths. Assume these two enums are 0 and 1 which allows a > single comparison to select both of them.

[RFC PATCH 3/5] streamline REQ_OP_READ-WRITE access

2018-08-05 Thread Douglas Gilbert
Make the two block layer operations most frequently used (REQ_OP_READ and REQ_OP_WRITE) bypass the switch statements in the submission and response paths. Assume these two enums are 0 and 1 which allows a single comparison to select both of them. Check that assumption at driver start-up. Signed-of