https://github.com/torvalds/linux
Revision 1b99973f1c82707e46e8cb9416865a1e955e8f8c authored by Tao Ma on 23 June 2010, 23:43:57 UTC, committed by Jens Axboe on 24 June 2010, 06:14:22 UTC
In submit_bio, we count vm events by check READ/WRITE.
But actually DISCARD_NOBARRIER also has the WRITE flag set.
It looks as if in blkdev_issue_discard, we also add a
page as the payload and the bio_has_data check isn't enough.
So add another check for discard bio.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 9e495db
History
Tip revision: 1b99973f1c82707e46e8cb9416865a1e955e8f8c authored by Tao Ma on 23 June 2010, 23:43:57 UTC
block: Don't count_vm_events for discard bio in submit_bio.
Tip revision: 1b99973
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 170.0 KB
Makefile -rw-r--r-- 52.6 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top