On Tue, Oct 19, 2021 at 10:24:25PM +0100, Pavel Begunkov wrote: > Optimise the switch in submit_bio_checks() for reads, writes and > flushes. REQ_OP_READ/WRITE/FLUSH take numbers from 0 to 2, so the added > checks are compiled into a single condition: > > if (op <= REQ_OP_FLUSH) {} else { switch() ... }; Same comment as for the previous one.