Home
last modified time | relevance | path

Searched hist:c1075e54 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/block/
H A Dblk-flush.cc1075e54 Thu May 18 23:40:45 CDT 2023 Christoph Hellwig <hch@lst.de> blk-mq: reflow blk_insert_flush

Use a switch statement to decide on the disposition of a flush request
instead of multiple if statements, out of which one does checks that are
more complex than required. Also warn on a malformed request early
on instead of doing a BUG_ON later.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230519044050.107790-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>