Anand Jain
59a3991984
btrfs: replace: drop assert for suspended replace
...
If the filesystem mounts with the replace-operation in a suspended state
and try to cancel the suspended replace-operation, we hit the assert. The
assert came from the commit fe97e2e173af ("btrfs: dev-replace: replace's
scrub must not be running in suspended state") that was actually not
required. So just remove it.
$ mount /dev/sda5 /btrfs
BTRFS info (device sda5): cannot continue dev_replace, tgtdev is missing
BTRFS info (device sda5): you may cancel the operation after 'mount -o degraded'
$ mount -o degraded /dev/sda5 /btrfs <-- success.
$ btrfs replace cancel /btrfs
kernel: assertion failed: ret != -ENOTCONN, in fs/btrfs/dev-replace.c:1131
kernel: ------------[ cut here ]------------
kernel: kernel BUG at fs/btrfs/ctree.h:3750!
After the patch:
$ btrfs replace cancel /btrfs
BTRFS info (device sda5): suspended dev_replace from /dev/sda5 (devid 1) to <missing disk> canceled
Fixes: fe97e2e173af ("btrfs: dev-replace: replace's scrub must not be running in suspended state")
CC: stable@vger.kernel.org # 5.0+
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2022-08-23 22:15:21 +02:00
..
2022-06-17 06:03:30 +09:00
2022-05-09 16:21:44 -04:00
2022-05-09 16:21:44 -04:00
2022-07-14 10:10:12 +02:00
2021-10-20 21:09:02 -04:00
2022-05-09 16:21:45 -04:00
2022-05-09 16:21:44 -04:00
2022-08-23 22:15:21 +02:00
2022-07-05 16:12:21 +01:00
2022-07-14 10:10:12 +02:00
2022-07-13 19:59:47 -05:00
2022-05-09 16:21:45 -04:00
2022-02-22 18:30:28 +01:00
2022-05-09 16:21:45 -04:00
2022-05-09 16:18:54 -07:00
2022-02-25 11:56:13 +01:00
2022-01-24 14:17:02 +01:00
2022-05-02 11:23:49 -05:00
2022-05-09 16:21:45 -04:00
2022-05-09 16:21:45 -04:00
2022-06-01 11:54:29 -07:00
2022-06-09 21:26:32 +09:00
2022-04-28 16:31:10 +02:00
2022-06-16 10:55:45 +02:00
2022-06-18 19:36:20 -04:00
2022-06-21 08:29:56 -07:00
2022-05-27 11:22:03 -07:00
2022-06-03 10:34:34 -07:00
2022-07-05 16:12:55 +01:00
2022-05-27 15:49:30 -07:00
2022-05-24 19:55:07 -07:00
2022-05-09 23:12:34 -04:00
2022-05-09 23:12:34 -04:00
2022-05-09 16:21:45 -04:00
2022-05-09 16:21:45 -04:00
2022-06-16 19:11:32 -07:00
2022-05-24 19:55:07 -07:00
2022-05-09 16:21:45 -04:00
2022-06-16 10:36:09 -04:00
2022-06-03 14:42:24 -07:00
2022-05-27 15:59:21 -07:00
2022-05-19 19:37:06 +02:00
2022-06-30 15:16:38 -07:00
2022-07-11 15:49:56 -04:00
2022-05-09 16:21:44 -04:00
2022-07-14 10:10:12 +02:00
2022-06-30 16:13:00 -04:00
2021-10-04 22:02:17 +01:00
2022-07-14 12:29:43 -07:00
2022-07-03 15:42:33 -07:00
2022-06-28 11:18:13 +02:00
2022-05-27 11:22:03 -07:00
2022-06-03 16:57:16 -07:00
2022-05-27 11:22:03 -07:00
2022-05-09 16:21:44 -04:00
2022-03-22 15:57:03 -07:00
2022-05-09 23:12:53 -04:00
2022-07-08 15:48:31 +02:00
2022-05-27 11:22:03 -07:00
2022-03-15 11:08:23 -07:00
2022-05-09 16:21:44 -04:00
2022-05-09 16:21:44 -04:00
2022-06-06 10:08:10 +02:00
2021-11-09 10:11:53 -08:00
2022-05-09 23:12:34 -04:00
2022-05-09 16:21:46 -04:00
2022-05-23 20:24:12 -05:00
2022-05-24 19:55:07 -07:00
2022-04-05 15:39:19 +02:00
2022-05-27 11:22:03 -07:00
2022-06-17 19:01:28 -04:00
2022-06-03 14:42:24 -07:00
2022-05-24 19:55:07 -07:00
2022-05-09 16:21:44 -04:00
2022-02-14 10:37:32 +09:00
2022-05-09 16:21:46 -04:00
2022-05-24 19:55:07 -07:00
2022-07-01 09:09:52 -07:00
2022-06-08 19:13:55 +09:00
2022-04-01 19:57:03 -07:00
2021-09-19 22:35:37 -04:00
2022-06-14 12:18:47 +02:00
2021-09-05 10:15:05 -07:00
2022-03-08 12:55:29 -06:00
2022-03-03 20:38:56 -08:00
2022-04-15 14:49:56 -07:00
2022-04-22 10:57:18 -07:00
2022-02-09 09:50:02 -08:00
2022-05-09 23:12:34 -04:00
2022-03-03 20:38:56 -08:00
2022-03-28 17:29:53 -07:00
2021-11-06 13:30:32 -07:00
2022-05-27 15:49:30 -07:00
2022-03-22 15:57:03 -07:00
2022-04-17 19:50:02 -06:00
2021-09-03 09:58:10 -07:00
2021-09-06 07:20:56 -04:00
2022-01-22 08:33:35 +02:00
2022-07-11 09:52:59 -07:00
2022-05-09 18:20:49 -07:00
2022-06-04 18:52:00 -07:00
2022-06-05 15:03:03 -04:00
2022-01-18 09:23:19 +02:00
2021-12-09 14:09:36 -05:00
2022-06-06 09:54:30 +02:00
2022-05-19 23:25:10 -04:00
2022-06-06 09:54:30 +02:00
2022-06-04 19:00:05 -07:00
2022-07-21 08:31:31 -06:00
2022-04-30 08:39:54 -06:00
2022-04-24 18:18:18 -06:00
2022-04-01 19:35:56 -07:00
2022-04-28 23:16:15 -07:00
2022-05-30 10:56:18 -07:00
2021-10-18 20:22:03 -10:00
2022-05-09 16:21:44 -04:00
2022-05-19 12:25:39 -04:00
2022-02-01 11:13:24 -08:00
2022-05-09 23:12:34 -04:00
2022-06-04 19:07:15 -07:00
2022-06-04 19:00:05 -07:00
2022-05-31 14:10:54 -07:00
2022-05-27 11:22:03 -07:00
2022-04-19 10:19:02 -07:00
2021-12-03 18:44:06 +01:00
2022-06-30 15:16:38 -07:00
2022-07-14 15:35:24 -07:00
2022-01-11 09:03:05 -08:00
2022-05-22 21:03:01 +01:00
2022-01-17 05:49:30 +02:00
2022-03-21 12:59:01 -04:00
2022-05-31 14:10:54 -07:00
2022-04-17 19:49:59 -06:00
2022-04-26 13:36:25 -07:00
2022-01-22 08:33:36 +02:00
2022-05-13 07:20:11 -07:00
2022-04-24 18:18:37 -06:00