[linux-yocto] [yocto-4.12][PATCH 2/2] brd: remove unused brd_mutex

Liwei Song liwei.song at windriver.com
Thu Mar 1 18:17:19 PST 2018

From: Mikulas Patocka <mpatocka at redhat.com>

commit 15f7b41f70ddcca3b555bd0fdc7c8da7466b517e upstream.

Remove unused mutex brd_mutex. It is unused since the commit ff26956875c2
("brd: remove support for BLKFLSBUF").

Signed-off-by: Mikulas Patocka <mpatocka at redhat.com>
Signed-off-by: Jens Axboe <axboe at kernel.dk>
Signed-off-by: Liwei Song <liwei.song at windriver.com>
 drivers/block/brd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index ef049e3c9709..d01d84314b16 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -58,7 +58,6 @@ struct brd_device {
  * Look up and return a brd's page for a given sector.
-static DEFINE_MUTEX(brd_mutex);
 static struct page *brd_lookup_page(struct brd_device *brd, sector_t sector)
 	pgoff_t idx;

More information about the linux-yocto mailing list