Re: [PATCH 2/6] block: loop: don't hold lo_ctl_mutex in lo_open

Christoph Hellwig
2015-04-06T14:49:51Z

On Mon, Apr 06, 2015 at 12:28:22AM +0800, Ming Lei wrote:
> Another simpler way is to make lo_refcnt as atomic_t and remove
> lo_ctrl_mutext in lo_open(), and freeze request queue during clearing
> fd, and better to freeze queue during setting fd too, so will update in
> v1 with this way.

Using an atomic_t sounds good to me.