Re: [PATCH 03/18] block: fix elevator init check

From
Bart Van Assche <hidden>
Date
2017-01-26 23:21:49
Also in
dm-devel, linux-block, linux-scsi
Reply to
Christoph Hellwig, 2017-01-25
On Wed, 2017-01-25 at 18:25 +0100, Christoph Hellwig wrote:
We can't initalize the elevator fields for flushes as flush share space
in struct request with the elevator data.  But currently we can't
commnicate that a request is a flush through blk_get_request as we
can only pass READ or WRITE, and the low-level code looks at the
possible NULL bio to check for a flush.

Fix this by allowing to pass any block op and flags, and by checking for
the flush flags in __get_request.
Reviewed-by: Bart Van Assche <redacted>
Thread (80 messages) 80 messages, 6 authors, last reply 2017-01-31
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help