dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* (unknown), 
@ 2012-01-19 13:00 Kasatkin, Dmitry
  0 siblings, 0 replies; 14+ messages in thread
From: Kasatkin, Dmitry @ 2012-01-19 13:00 UTC (permalink / raw)
  To: device-mapper development; +Cc: LKML, Linus Torvalds

Hi,

I rebased on the stop of latest mainline tree and now dmsetup fails...
It says: "Failed to create notification semaphore: Function not implemented".
I run strace and saw that dmsetup uses "semget" which returns -ENOSYS...

Any ideas?

- Dmitry

^ permalink raw reply	[flat|nested] 14+ messages in thread
* (unknown)
@ 2010-07-01 10:49 FUJITA Tomonori
  0 siblings, 0 replies; 14+ messages in thread
From: FUJITA Tomonori @ 2010-07-01 10:49 UTC (permalink / raw)
  To: axboe
  Cc: snitzer, hch, James.Bottomley, linux-scsi, dm-devel,
	fujita.tomonori, linux-kernel

This patchset fixes page leak issue in discard commands with unprep
facility that James posted:

http://marc.info/?l=linux-scsi&m=127791727508214&w=2

The 1/3 patch adds unprep facility to the block layer (identical to
what James posted).

The 2/3 patch frees a page for discard commands by using the unprep
facility. James' original patch doesn't work since it accesses to
rq->bio in q->unprep_rq_fn. We hit oops since q->unprep_rq_fn is
called when all the data buffer (req->bio and scsi_data_buffer) in the
request is freed.

I use rq->buffer to keep track of an allocated page as the block layer
sets rq->buffer to the address of bio's page. scsi-ml (and llds) don't
use rq->buffer (rq->buffer is set to NULL). So I can't say that I like
it lots. Any other way to do that?

The 3/3 path just removes the dead code.

This is against Jens' for-2.6.36.

The git tree is also available:

git://git.kernel.org/pub/scm/linux/kernel/git/tomo/linux-2.6-misc.git unprep

I'll update the discard FS request conversion on the top of this soon. But this can be applied independently (and fixes the memory leak).

=
 block/blk-core.c        |   25 +++++++++++++++++++++++++
 block/blk-settings.c    |   17 +++++++++++++++++
 drivers/scsi/scsi_lib.c |    2 +-
 drivers/scsi/sd.c       |   25 +++++++++++++++----------
 include/linux/blkdev.h  |    4 ++++
 5 files changed, 62 insertions(+), 11 deletions(-)




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-01-19 13:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20101117215541.GA7785@redhat.com>
2010-11-18  4:40 ` [PATCH v2] dm mpath: add feature flag to control call to blk_abort_queue Mike Snitzer
2010-11-18  7:20   ` Mike Anderson
2010-11-18 15:48     ` Mike Snitzer
2010-11-18 15:48     ` [PATCH v3] " Mike Snitzer
2010-11-18 19:16       ` (unknown), Mike Snitzer
2010-11-18 19:21         ` Mike Snitzer
2010-11-18 19:19       ` [PATCH v4] dm mpath: avoid call to blk_abort_queue by default Mike Snitzer
2010-11-18 20:07         ` [PATCH v5] " Mike Snitzer
2010-11-18 20:18           ` [dm-devel] " Alasdair G Kergon
2010-11-18 20:39             ` Mike Anderson
2010-11-18 21:48             ` [PATCH] dm mpath: disable call to blk_abort_queue and related code Mike Snitzer
2010-11-23  1:00               ` [PATCH v2] dm mpath: revert "dm: Call blk_abort_queue on failed paths" Mike Snitzer
2012-01-19 13:00 (unknown), Kasatkin, Dmitry
  -- strict thread matches above, loose matches on Subject: below --
2010-07-01 10:49 (unknown) FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).