This looks ok to me, or at least better than the version from Ming to archive the same. I kinda hate to add more REQ_* flags than really nessecary though. Maybe instead of the mapping to REQ_* as suggested to ming blk_queue_enter should instead take the BLK_MQ_REQ_* flags and we'll add BLK_MQ_REQ_PREEMPT, and pass those to blk_get_request. If it wasn't for Linus beeing angry due to block churn I'd be very tempted to suggest that.
- Re: [PATCH v4 1/7] md: Make md resync and reshape t... Hannes Reinecke
- Re: [PATCH v4 1/7] md: Make md resync and reshape t... Ming Lei
- Re: [PATCH v4 1/7] md: Make md resync and resha... Bart Van Assche
- Re: [PATCH v4 1/7] md: Make md resync and r... Ming Lei
- Re: [PATCH v4 1/7] md: Make md resync a... Bart Van Assche
- Re: [PATCH v4 1/7] md: Make md resync and reshape t... Christoph Hellwig
- [PATCH v4 4/7] block: Add the QUEUE_FLAG_PREEMPT_ONLY re... Bart Van Assche
- [PATCH v4 6/7] scsi: Set QUEUE_FLAG_PREEMPT_ONLY while q... Bart Van Assche
- [PATCH v4 3/7] block: Convert RQF_PREEMPT into REQ_PREEM... Bart Van Assche
- Re: [PATCH v4 3/7] block: Convert RQF_PREEMPT into ... Christoph Hellwig
- Re: [PATCH v4 3/7] block: Convert RQF_PREEMPT i... Christoph Hellwig
- [PATCH v4 5/7] scsi: Reduce suspend latency Bart Van Assche
- Re: [PATCH v4 5/7] scsi: Reduce suspend latency Ming Lei
- Re: [PATCH v4 5/7] scsi: Reduce suspend latency Bart Van Assche
- [PATCH v4 7/7] block: Make SCSI device suspend and resum... Bart Van Assche
- Re: [PATCH v4 7/7] block: Make SCSI device suspend ... Ming Lei
- Re: [PATCH v4 7/7] block: Make SCSI device susp... Bart Van Assche
- Re: [PATCH v4 7/7] block: Make SCSI device ... Ming Lei
- Re: [PATCH v4 7/7] block: Make SCSI dev... Bart Van Assche
