Dmitry Fomichev 13a7b6539d hw/block/nvme: Separate read and write handlers
The majority of code in nvme_rw() is becoming read- or write-specific.
Move these parts to two separate handlers, nvme_read() and nvme_write()
to make the code more readable and to remove multiple is_write checks
that has been present in the i/o path.

This is a refactoring patch, no change in functionality.

Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Reviewed-by: Niklas Cassel <Niklas.Cassel@wdc.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
2021-02-08 18:55:48 +01:00
..
2021-01-22 18:26:40 +01:00
2021-01-12 21:19:02 +00:00
2020-12-10 12:15:18 -05:00
2021-02-05 08:52:59 -05:00
2020-12-10 12:15:18 -05:00
2020-12-10 12:15:07 -05:00
2021-01-08 15:13:38 +00:00
2020-12-10 12:15:18 -05:00
2020-12-10 12:15:08 -05:00
2020-08-21 06:30:25 -04:00
2021-02-05 08:52:58 -05:00
2020-08-27 14:04:55 -04:00
2021-02-08 16:57:38 +11:00
2021-01-01 22:57:15 +00:00
2020-12-10 12:15:06 -05:00
2020-12-10 12:15:08 -05:00
2020-12-10 12:15:18 -05:00
2020-08-21 06:30:33 -04:00
2021-02-05 08:52:58 -05:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00