]> git.neil.brown.name Git - history.git/commit
[PATCH] fix SG_IO page leak
authorJens Axboe <axboe@suse.de>
Tue, 27 Apr 2004 01:27:53 +0000 (18:27 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 27 Apr 2004 01:27:53 +0000 (18:27 -0700)
commita7716627dd19f0ea48f8ed785baadbb2e956a515
treefcfb1cab653a00d0db1a7ff2c2864d929d17f30f
parent2f04ba946810e409f29a8d3a6b0d5ff7a26491f6
[PATCH] fix SG_IO page leak

We cannot always rely on ->biotail remaining untouched. Currently we
leak all the pinned user pages when doing cdda ripping at least, so I
see no way around keeping the bio pointer seperate and passing it back
in for unmap. Alternatively, we could invent a struct blk_map_data and
put it on the stack for passing to both map and unmap.
drivers/block/ll_rw_blk.c
drivers/block/scsi_ioctl.c
drivers/cdrom/cdrom.c
include/linux/blkdev.h