Skip to contentSkip to conversation

nbd-remove-bogus-bug_on-in-nbd_clear_que.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 8, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: [merged] nbd-remove-bogus-bug_on-in-nbd_clear_que.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:36:52 -0700

The patch titled
Subject: nbd: remove bogus BUG_ON in NBD_CLEAR_QUE
has been removed from the -mm tree. Its filename was
nbd-remove-bogus-bug_on-in-nbd_clear_que.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Michal Belczyk <[email protected]>
Subject: nbd: remove bogus BUG_ON in NBD_CLEAR_QUE

The NBD_CLEAR_QUE ioctl has been deprecated for quite some time (its job is now done by two other ioctls). We should stop trying to make bogus assertions in it. Also, user-level code should remove calls to NBD_CLEAR_QUE, ASAP.

---

 drivers/block/nbd.c |    1 -
 1 file changed, 1 deletion(-)
drivers/block/nbd.c renamed from drivers/block/nbd.c~nbd-remove-bogus-bug_on-in-nbd_clear_que +0 -1
diff -puN drivers/block/nbd.c~nbd-remove-bogus-bug_on-in-nbd_clear_que drivers/block/nbd.c
@@ -751,7 +751,6 @@ static int __nbd_ioctl(struct block_devi
 		 * This is for compatibility only.  The queue is always cleared
 		 * by NBD_DO_IT or NBD_CLEAR_SOCK.
 		 */
-		BUG_ON(!nbd->sock && !list_empty(&nbd->queue_head));
 		return 0;
 
 	case NBD_PRINT_DEBUG:

_

Patches currently in -mm which might be from [email protected] are

origin.patch