Re: [PATCH] v9fs: signal handling fixes

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

 



Latchesar Ionkov <[email protected]> wrote:
>
> +	/* if the request is not sent yet, just remove it from the list */
>  +	list_for_each_entry_safe(rreq, rptr, &m->unsent_req_list, req_list) {
>  +		if (rreq->tag == req->tag) {
>  +			dprintk(DEBUG_MUX, "mux %p req %p request is not sent yet\n", m, req);
>  +			list_del(&rreq->req_list);
>  +			req->flush = Flushed;
>  +			spin_unlock(&m->lock);
>  +			if (req->cb)
>  +				(*req->cb) (req, req->cba);
>  +			return 0;
>  +		}

Actually, list_for_each() would suffice here - the code won't touch the
list again after having modified it.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux