[dm-devel] [RFC PATCH V2 1/3] block: add helper of blk_queue_poll

Ming Lei ming.lei at redhat.com
Mon Jun 21 08:38:54 UTC 2021


On Mon, Jun 21, 2021 at 09:20:36AM +0200, Christoph Hellwig wrote:
> On Thu, Jun 17, 2021 at 06:35:47PM +0800, Ming Lei wrote:
> > There has been 3 users, and will be more, so add one such helper.
> > 
> > Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
> > Reviewed-by: Jeffle Xu <jefflexu at linux.alibaba.com>
> > Reviewed-by: Hannes Reinecke <hare at suse.de>
> > Signed-off-by: Ming Lei <ming.lei at redhat.com>
> 
> I still don't like hiding a simple flag test like this, it just adds
> another step to grepping what is going on.

It is actually one pattern in block layer since there is so many such
macros of blk_queue_*. And it makes the check line shorter.


Thanks,
Ming




More information about the dm-devel mailing list