Re: [PATCH 2/2] blk-mq: provide a helper to check if a queue is busy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2018-11-08 at 09:06 -0700, Jens Axboe wrote:
+AD4 +-static bool blk+AF8-mq+AF8-check+AF8-busy(struct blk+AF8-mq+AF8-hw+AF8-ctx +ACo-hctx, struct request +ACo-rq,
+AD4 +-			      void +ACo-priv, bool reserved)
+AD4 +-+AHs
+AD4 +-	/+ACo
+AD4 +-	 +ACo If we find a request, we know the queue is busy. Return false
+AD4 +-	 +ACo to stop the iteration.
+AD4 +-	 +ACo-/
+AD4 +-	if (rq-+AD4-q +AD0APQ hctx-+AD4-queue) +AHs
+AD4 +-		bool +ACo-busy +AD0 (bool +ACo) priv+ADs

I think the +ACI(bool +ACo)+ACI cast can be left out. Anyway:

Reviewed-by: Bart Van Assche +ADw-bvanassche+AEA-acm.org+AD4




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux