Re: blk request timeout handler against 2.6.26

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

 



Jens,

What is the status of the blk request timeout handler patches? I noticed
the branch is showing no update for 7 months and the updates sent to the
list received no response.

I was working on a abort function patch on top of the timeout patches to
see if I could speed up some multipath failure over cases and wanted to
understand if the blk timeout patch set was still a valid patch set.


malahal@xxxxxxxxxx <malahal@xxxxxxxxxx> wrote:
> Add missing queue lock in blk_complete_request(). Ran disktest for few
> hours and it works fine with this patch.
> 
> Signed-off-by: Malahal Naineni <malahal@xxxxxxxxxx>
> 
> diff -r c06b3eb1f516 block/blk-core.c
> --- a/block/blk-core.c	Wed May 07 20:07:12 2008 -0700
> +++ b/block/blk-core.c	Wed May 07 20:17:03 2008 -0700
> @@ -1856,6 +1856,10 @@
>   */
>  void blk_complete_request(struct request *req)
>  {
> +	unsigned long flags;
> +	struct request_queue *q = req->q;
> +	int rc;
> +
>  	/*
>  	 * We don't have to worry about this one timing out any more.
>  	 * If we are unable to remove the timer, then the command
> @@ -1864,7 +1868,10 @@
>  	 * that function could really be.  It might be on another processor,
>  	 * etc, etc.
>  	 */
> -	if (!blk_delete_timer(req))
> +	spin_lock_irqsave(q->queue_lock, flags);
> +	rc = blk_delete_timer(req);
> +	spin_unlock_irqrestore(q->queue_lock, flags);
> +	if (!rc)
>  		return;
> 
>  	__blk_complete_request(req);
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-andmike
--
Michael Anderson
andmike@xxxxxxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux