mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	blk-mq: fix redundant check of !e expression
In the if branch, e is checked. In the else branch, ->dispatch_busy is merely a number and has no effect on !e. We should remove the check of !e since it is always true. Signed-off-by: Jean Sacren <sakiwit@gmail.com> Link: https://lore.kernel.org/r/20211029202945.3052-1-sakiwit@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
		
							parent
							
								
									9b84c629c9
								
							
						
					
					
						commit
						ef1661ba6d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -497,7 +497,7 @@ void blk_mq_sched_insert_requests(struct blk_mq_hw_ctx *hctx, | ||||||
| 		 * busy in case of 'none' scheduler, and this way may save | 		 * busy in case of 'none' scheduler, and this way may save | ||||||
| 		 * us one extra enqueue & dequeue to sw queue. | 		 * us one extra enqueue & dequeue to sw queue. | ||||||
| 		 */ | 		 */ | ||||||
| 		if (!hctx->dispatch_busy && !e && !run_queue_async) { | 		if (!hctx->dispatch_busy && !run_queue_async) { | ||||||
| 			blk_mq_try_issue_list_directly(hctx, list); | 			blk_mq_try_issue_list_directly(hctx, list); | ||||||
| 			if (list_empty(list)) | 			if (list_empty(list)) | ||||||
| 				goto out; | 				goto out; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Jean Sacren
						Jean Sacren