diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2016-08-23 21:17:48 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-08-24 21:55:05 -0400 |
commit | 9c5a559d9495bba6e5b6c5ee4e8e2f2b71088684 (patch) | |
tree | b6aa2f9694d9f176afcf5a2116a62f29b4680b0e /scripts/gdb/linux/utils.py | |
parent | 299f6230bc6d0ccd5f95bb0fb865d80a9c7d5ccc (diff) |
dm log: fix unitialized bio operation flags
Commit e6047149db ("dm: use bio op accessors") switched DM over to
using bio_set_op_attrs() but didn't take care to initialize
lc->io_req.bi_op_flags in dm-log.c:rw_header(). This caused
rw_header()'s call to dm_io() to make bio->bi_op_flags be uninitialized
in dm-io.c:do_region(), which ultimately resulted in a SCSI BUG() in
sd_init_command().
Also, adjust rw_header() and its callers to use REQ_OP_{READ|WRITE}.
Fixes: e6047149db ("dm: use bio op accessors")
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@seagate.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions