public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]  aio: remove unused function aio_run_iocbs()
@ 2008-06-26 11:10 Nikanth Karthikesan
  2008-06-27 13:15 ` Jeff Moyer
  0 siblings, 1 reply; 5+ messages in thread
From: Nikanth Karthikesan @ 2008-06-26 11:10 UTC (permalink / raw)
  To: linux-aio; +Cc: Jeff Moyer, linux-kernel, Benjamin LaHaise, Zach Brown

remove unused function aio_run_iocbs()

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>

---

diff --git a/fs/aio.c b/fs/aio.c
index 0fb3117..e27f611 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -797,26 +797,6 @@ static void aio_queue_work(struct kioctx * ctx)
 	queue_delayed_work(aio_wq, &ctx->wq, timeout);
 }
 
-
-/*
- * aio_run_iocbs:
- * 	Process all pending retries queued on the ioctx
- * 	run list.
- * Assumes it is operating within the aio issuer's mm
- * context.
- */
-static inline void aio_run_iocbs(struct kioctx *ctx)
-{
-	int requeue;
-
-	spin_lock_irq(&ctx->ctx_lock);
-
-	requeue = __aio_run_iocbs(ctx);
-	spin_unlock_irq(&ctx->ctx_lock);
-	if (requeue)
-		aio_queue_work(ctx);
-}
-
 /*
  * just like aio_run_iocbs, but keeps running them until
  * the list stays empty


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

* Re: [PATCH]  aio: remove unused function aio_run_iocbs()
  2008-06-26 11:10 [PATCH] aio: remove unused function aio_run_iocbs() Nikanth Karthikesan
@ 2008-06-27 13:15 ` Jeff Moyer
  2008-06-30 17:40   ` Zach Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Moyer @ 2008-06-27 13:15 UTC (permalink / raw)
  To: Nikanth Karthikesan; +Cc: linux-aio, linux-kernel, Benjamin LaHaise, Zach Brown

Nikanth Karthikesan <knikanth@suse.de> writes:

> remove unused function aio_run_iocbs()

Seems like it's time to just get rid of it.  See:
  http://ussg.iu.edu/hypermail/linux/kernel/0608.0/0048.html
for an explanation of why it's still there.

Cheers,

Jeff

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

* Re: [PATCH]  aio: remove unused function aio_run_iocbs()
  2008-06-27 13:15 ` Jeff Moyer
@ 2008-06-30 17:40   ` Zach Brown
  2008-07-01  8:25     ` Nikanth Karthikesan
  0 siblings, 1 reply; 5+ messages in thread
From: Zach Brown @ 2008-06-30 17:40 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: Nikanth Karthikesan, linux-aio, linux-kernel, Benjamin LaHaise

Jeff Moyer wrote:
> Nikanth Karthikesan <knikanth@suse.de> writes:
> 
>> remove unused function aio_run_iocbs()
> 
> Seems like it's time to just get rid of it.  See:
>   http://ussg.iu.edu/hypermail/linux/kernel/0608.0/0048.html
> for an explanation of why it's still there.

Yeah, I'm still of the opinion that the cost of having to resurrect it
if it's needed again isn't significant enough to keep it in the tree
without callers.

- z

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

* Re: [PATCH]  aio: remove unused function aio_run_iocbs()
  2008-06-30 17:40   ` Zach Brown
@ 2008-07-01  8:25     ` Nikanth Karthikesan
  2008-07-01  8:27       ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Nikanth Karthikesan @ 2008-07-01  8:25 UTC (permalink / raw)
  To: Zach Brown; +Cc: Jeff Moyer, linux-aio, linux-kernel, Benjamin LaHaise

On Monday 30 June 2008 23:10:50 Zach Brown wrote:
> Jeff Moyer wrote:
> > Nikanth Karthikesan <knikanth@suse.de> writes:
> >> remove unused function aio_run_iocbs()
> >
> > Seems like it's time to just get rid of it.  See:
> >   http://ussg.iu.edu/hypermail/linux/kernel/0608.0/0048.html
> > for an explanation of why it's still there.
>
> Yeah, I'm still of the opinion that the cost of having to resurrect it
> if it's needed again isn't significant enough to keep it in the tree
> without callers.
>

Can't this function be kept as part of the out-of-tree patch itself? Or is it 
a module that requires this symbol? I do not see a EXPORT_SYMBOL*() for this, 
so it cannot be a module depending on this func!?

Thanks
Nikanth Karthikesan



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

* Re: [PATCH]  aio: remove unused function aio_run_iocbs()
  2008-07-01  8:25     ` Nikanth Karthikesan
@ 2008-07-01  8:27       ` Christoph Hellwig
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2008-07-01  8:27 UTC (permalink / raw)
  To: Nikanth Karthikesan
  Cc: Zach Brown, Jeff Moyer, linux-aio, linux-kernel, Benjamin LaHaise

On Tue, Jul 01, 2008 at 01:55:50PM +0530, Nikanth Karthikesan wrote:
> Can't this function be kept as part of the out-of-tree patch itself? Or is it 
> a module that requires this symbol? I do not see a EXPORT_SYMBOL*() for this, 
> so it cannot be a module depending on this func!?

Yes.  There's very very few reason to keep unused functions around,
and a patch that hasn't been merged forever is not one of those.

Please kill it.


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

end of thread, other threads:[~2008-07-01  8:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-26 11:10 [PATCH] aio: remove unused function aio_run_iocbs() Nikanth Karthikesan
2008-06-27 13:15 ` Jeff Moyer
2008-06-30 17:40   ` Zach Brown
2008-07-01  8:25     ` Nikanth Karthikesan
2008-07-01  8:27       ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox