engines/libzbc: for read workloads always open devices with O_RDONLY flag
authorVincent Fu <vincent.fu@samsung.com>
Tue, 7 Feb 2023 14:37:29 +0000 (09:37 -0500)
committerVincent Fu <vincent.fu@samsung.com>
Tue, 7 Feb 2023 14:37:29 +0000 (09:37 -0500)
commit57cbfced8c837b3b95746359ac6ba34514d68e3c
treef19e243cb406c502dad1deda771fc2c520d100e6
parent06ec57ef41e1530d578f22bb8cc57c5ecd07e5d9
engines/libzbc: for read workloads always open devices with O_RDONLY flag

libzbc uses the SG_IO ioctl to send commands to devices (instead of
using write() to send commands to character devices). So we don't need
to open character devices with the O_RDWR flag.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
engines/libzbc.c