Skip to contentSkip to conversation

+ nbd-remove-bogus-bug_on-in-nbd_clear_que.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jun 18, 2013

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

Subject: + nbd-remove-bogus-bug_on-in-nbd_clear_que.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Tue, 18 Jun 2013 14:06:02 -0700

The patch titled
Subject: nbd: remove bogus BUG_ON in NBD_CLEAR_QUE
has been added to the -mm tree. Its filename is
nbd-remove-bogus-bug_on-in-nbd_clear_que.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
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

nbd-remove-bogus-bug_on-in-nbd_clear_que.patch