Searched hist:"8 d394bc4adf588ca4a0650745167cb83f86c18c9" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | dm-stats.h | diff 8d394bc4adf588ca4a0650745167cb83f86c18c9 Thu Feb 17 22:39:57 CST 2022 Mike Snitzer <snitzer@redhat.com> dm: fix double accounting of flush with data
DM handles a flush with data by first issuing an empty flush and then once it completes the REQ_PREFLUSH flag is removed and the payload is issued. The problem fixed by this commit is that both the empty flush bio and the data payload will account the full extent of the data payload.
Fix this by factoring out dm_io_acct() and having it wrap all IO accounting to set the size of bio with REQ_PREFLUSH to 0, account the IO, and then restore the original size.
Cc: stable@vger.kernel.org Signed-off-by: Mike Snitzer <snitzer@redhat.com>
|
H A D | dm-stats.c | diff 8d394bc4adf588ca4a0650745167cb83f86c18c9 Thu Feb 17 22:39:57 CST 2022 Mike Snitzer <snitzer@redhat.com> dm: fix double accounting of flush with data
DM handles a flush with data by first issuing an empty flush and then once it completes the REQ_PREFLUSH flag is removed and the payload is issued. The problem fixed by this commit is that both the empty flush bio and the data payload will account the full extent of the data payload.
Fix this by factoring out dm_io_acct() and having it wrap all IO accounting to set the size of bio with REQ_PREFLUSH to 0, account the IO, and then restore the original size.
Cc: stable@vger.kernel.org Signed-off-by: Mike Snitzer <snitzer@redhat.com>
|
H A D | dm.c | diff 8d394bc4adf588ca4a0650745167cb83f86c18c9 Thu Feb 17 22:39:57 CST 2022 Mike Snitzer <snitzer@redhat.com> dm: fix double accounting of flush with data
DM handles a flush with data by first issuing an empty flush and then once it completes the REQ_PREFLUSH flag is removed and the payload is issued. The problem fixed by this commit is that both the empty flush bio and the data payload will account the full extent of the data payload.
Fix this by factoring out dm_io_acct() and having it wrap all IO accounting to set the size of bio with REQ_PREFLUSH to 0, account the IO, and then restore the original size.
Cc: stable@vger.kernel.org Signed-off-by: Mike Snitzer <snitzer@redhat.com>
|