Thread (4 messages) 4 messages, 3 authors, 2021-12-23

Re: [PATCH (resend)] brd: remove brd_devices_mutex mutex

flat view

From: Luis Chamberlain <mcgrof@kernel.org>
Date: 2021-12-19 21:35:43

On Fri, Dec 17, 2021 at 08:03:48PM +0900, Tetsuo Handa wrote:
If brd_alloc() from brd_probe() is called before brd_alloc() from
brd_init() is called, module loading will fail with -EEXIST error.
To close this race, call __register_blkdev() just before leaving
brd_init().

Then, we can remove brd_devices_mutex mutex, for brd_device list
will no longer be accessed concurrently.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>

  Luis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help