Re: [PATCH V7 4/6] block: prepare for passing RQF_PREEMPT to request allocation

2017-10-02 Thread Christoph Hellwig
As mentioned in the reply to Bart, I'd much rather use BLK_MQ_REQ_* for the sane blk_get_request version (which should have the same prototype as blk_mq_alloc_request) instead of having another flags namespace.

[PATCH V7 4/6] block: prepare for passing RQF_PREEMPT to request allocation

2017-09-29 Thread Ming Lei
REQF_PREEMPT is a bit special because the request is required to be dispatched to lld even when SCSI device is quiesced. So this patch introduces __blk_get_request() and allows users to pass RQF_PREEMPT flag in, then we can allow to allocate request of RQF_PREEMPT when queue is in mode of PREEMPT