All of lore.kernel.org
 help / color / mirror / Atom feed
* New Patch series for the UBD Driver
@ 2018-11-12 17:41 anton.ivanov
  2018-11-12 17:41 ` [PATCH 1/3] um: Switch to block-mq constants in the UML UBD driver anton.ivanov
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: anton.ivanov @ 2018-11-12 17:41 UTC (permalink / raw)
  To: linux-um; +Cc: axboe, richard, hch

This is the revised patchset for the ubd driver. Known issues:

1. If an error is returned to an operation different from READ/WRITE/SYNC
the block subsystem goes south finishing with a crash. I have tried everything
I can think of and whatever I could lift out of the loop and nbd driver. I do
not think that the problem is in the ubd driver. I am lost here, Jens can you
please give me a hand in handling the case when ubd_handler() gets an error in
reply to a discard.

2. The QEMU discard/fallocate test is not run-time and is rather flaky as it
tries to operate on stdin, not on a filesystem. Copying it to UML does not bring
a lot of value. There is an added complication that fallocate with
a length of zero is an EINVAL, so you actually have to wipe some data in the
target file for real for the test for fallocate availability to be robust. So
if there is the need for a runtime test it has to read/fallocate/write back
data. As the most common ubd format is a plain ext2/3/4 fs with no boot record
the offset zero and length of sizeof(int) are as safe as it can get. 
Unfortunately, less safe for other fs types, but there is little I can do there.

3. This, I think is somehow related to 1. Very heavy IO like for example
dd if=/dev/zero of=/testfile bs=1M count=16M will block memory allocations and
things will start dying on OOM. That started with 4.20-rc1+fixes, it did not
exist in 4.19.

[PATCH 1/3] um: Switch to block-mq constants in the UML UBD driver
[PATCH 2/3] um: Clean-up command processing in UML UBD driver
[PATCH 3/3] um: Add support for DISCARD in the UBD Driver

Best Regards,

A.

_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2018-11-13 15:29 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-12 17:41 New Patch series for the UBD Driver anton.ivanov
2018-11-12 17:41 ` [PATCH 1/3] um: Switch to block-mq constants in the UML UBD driver anton.ivanov
2018-11-12 17:48   ` Jens Axboe
2018-11-12 17:52     ` Anton Ivanov
2018-11-12 17:42 ` [PATCH 2/3] um: Clean-up command processing in " anton.ivanov
2018-11-12 17:42 ` [PATCH 3/3] um: Add support for DISCARD in the UBD Driver anton.ivanov
2018-11-12 17:50 ` New Patch series for " Jens Axboe
2018-11-12 18:00   ` Anton Ivanov
2018-11-12 18:04     ` Jens Axboe
2018-11-12 18:12       ` Anton Ivanov
2018-11-12 18:14         ` Jens Axboe
2018-11-12 18:23           ` Anton Ivanov
2018-11-12 18:24             ` Anton Ivanov
2018-11-12 18:28             ` Jens Axboe
2018-11-12 18:41               ` Anton Ivanov
2018-11-12 19:11                 ` Jens Axboe
2018-11-12 19:26                   ` Jens Axboe
2018-11-13  8:42                     ` Anton Ivanov
2018-11-13 10:15                       ` Anton Ivanov
2018-11-13 10:20                         ` Anton Ivanov
2018-11-13 13:30                         ` Jens Axboe
2018-11-13 13:56                           ` Anton Ivanov
2018-11-13 15:14                             ` Jens Axboe
2018-11-13 15:24                               ` Anton Ivanov
2018-11-13 15:29                                 ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.