Re: [PATCH 3/4] block: convert REQ_ATOM_COMPLETE to stealing rq->__deadline bit

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

 



On Tue, 2018-01-09 at 11:27 -0700, Jens Axboe wrote:
>  static inline int blk_mark_rq_complete(struct request *rq)
>  {
> -	return test_and_set_bit(REQ_ATOM_COMPLETE, &rq->atomic_flags);
> +	return test_and_set_bit(0, &rq->__deadline);
>  }
>  
>  static inline void blk_clear_rq_complete(struct request *rq)
>  {
> -	clear_bit(REQ_ATOM_COMPLETE, &rq->atomic_flags);
> +	clear_bit(0, &rq->__deadline);
> +}
> +
> +static inline bool blk_rq_is_complete(struct request *rq)
> +{
> +	return test_bit(0, &rq->__deadline);
>  }

Hello Jens,

With this change setting or changing the deadline clears the COMPLETE flag.
Is that the intended behavior? If so, should perhaps a comment be added above
blk_rq_set_deadline()?

Thanks,

Bart.




[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