Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ubd: Remove unused mutex 'ubd_mutex'

Commit fb5d1d389c9e ("ubd: open the backing files in ubd_add")

removed the last use of ubd_mutex.
Remove it.

Build and kernel startup test only.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20240505001508.255096-1-linux@treblig.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Dr. David Alan Gilbert and committed by
Johannes Berg
1cf855de 7d0a8a49

-1
-1
arch/um/drivers/ubd_kern.c
··· 106 106 #define DRIVER_NAME "uml-blkdev" 107 107 108 108 static DEFINE_MUTEX(ubd_lock); 109 - static DEFINE_MUTEX(ubd_mutex); /* replaces BKL, might not be needed */ 110 109 111 110 static int ubd_ioctl(struct block_device *bdev, blk_mode_t mode, 112 111 unsigned int cmd, unsigned long arg);