Skip to content

Commit 1cf855d

Browse files
Dr. David Alan Gilbertjmberg-intel
authored andcommitted
ubd: Remove unused mutex 'ubd_mutex'
Commit fb5d1d3 ("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>
1 parent 7d0a8a4 commit 1cf855d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/um/drivers/ubd_kern.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ static inline void ubd_set_bit(__u64 bit, unsigned char *data)
106106
#define DRIVER_NAME "uml-blkdev"
107107

108108
static DEFINE_MUTEX(ubd_lock);
109-
static DEFINE_MUTEX(ubd_mutex); /* replaces BKL, might not be needed */
110109

111110
static int ubd_ioctl(struct block_device *bdev, blk_mode_t mode,
112111
unsigned int cmd, unsigned long arg);

0 commit comments

Comments
 (0)