mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	block: export blk_rq_is_poll
This is in preparation to support iopoll for nvme passthrough. Signed-off-by: Kanchan Joshi <joshi.k@samsung.com> Link: https://lore.kernel.org/r/20220823161443.49436-4-joshi.k@samsung.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
		
							parent
							
								
									5756a3a7e7
								
							
						
					
					
						commit
						c6e99ea482
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -1233,7 +1233,7 @@ static void blk_end_sync_rq(struct request *rq, blk_status_t ret)
 | 
				
			||||||
	complete(&wait->done);
 | 
						complete(&wait->done);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool blk_rq_is_poll(struct request *rq)
 | 
					bool blk_rq_is_poll(struct request *rq)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if (!rq->mq_hctx)
 | 
						if (!rq->mq_hctx)
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
| 
						 | 
					@ -1243,6 +1243,7 @@ static bool blk_rq_is_poll(struct request *rq)
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	return true;
 | 
						return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					EXPORT_SYMBOL_GPL(blk_rq_is_poll);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void blk_rq_poll_completion(struct request *rq, struct completion *wait)
 | 
					static void blk_rq_poll_completion(struct request *rq, struct completion *wait)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -980,6 +980,7 @@ int blk_rq_map_kern(struct request_queue *, struct request *, void *,
 | 
				
			||||||
int blk_rq_append_bio(struct request *rq, struct bio *bio);
 | 
					int blk_rq_append_bio(struct request *rq, struct bio *bio);
 | 
				
			||||||
void blk_execute_rq_nowait(struct request *rq, bool at_head);
 | 
					void blk_execute_rq_nowait(struct request *rq, bool at_head);
 | 
				
			||||||
blk_status_t blk_execute_rq(struct request *rq, bool at_head);
 | 
					blk_status_t blk_execute_rq(struct request *rq, bool at_head);
 | 
				
			||||||
 | 
					bool blk_rq_is_poll(struct request *rq);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct req_iterator {
 | 
					struct req_iterator {
 | 
				
			||||||
	struct bvec_iter iter;
 | 
						struct bvec_iter iter;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue