lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 24 Jun 2009 12:02:47 +0200
From:	Miklos Szeredi <miklos@...redi.hu>
To:	tj@...nel.org
CC:	linux-kernel@...r.kernel.org, fuse-devel@...ts.sourceforge.net,
	miklos@...redi.hu, akpm@...ux-foundation.org, npiggin@...e.de,
	tj@...nel.org
Subject: Re: [PATCH 2/4] FUSE: make request_wait_answer() wait for ->end() completion

On Thu, 18 Jun 2009, Tejun Heo wrote:
> Previously, a request was marked FINISHED before ->end() is executed
> and thus request_wait_answer() can return before it's done.  This
> patch makes request_wait_answer() wait for ->end() to finish before
> returning.

Why is this change needed?

> 
> Note that no current ->end() user waits for request completion, so
> this change doesn't cause any behavior difference.
> 
> While at it, beef up the comment above ->end() hook and clarify when
> and where it's called.

OK.

[snip]

> @@ -293,10 +292,21 @@ __releases(&fc->lock)
>  		fc->active_background--;
>  		flush_bg_queue(fc);
>  	}
> +
>  	spin_unlock(&fc->lock);
> -	wake_up(&req->waitq);
> -	if (end)
> +
> +	if (end) {
>  		end(fc, req);
> +		smp_wmb();

Why is this barrier needed?

Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ