Re: [PATCH] bsg: call idr_pre_get() outside the lock.

From: FUJITA Tomonori
Date: Thu Sep 02 2010 - 00:13:57 EST


On Wed, 01 Sep 2010 23:26:01 +0900
Naohiro Aota <naota@xxxxxxxxx> wrote:

> The idr_pre_get() kernel-doc says "This function should be called
> prior to locking and calling the idr_get_new* functions.", but the
> idr_pre_get() calling in bsg_register_queue() is put inside
> mutex_lock(). Let's fix it.
>
> Signed-off-by: Naohiro Aota <naota@xxxxxxxxx>
> ---
> block/bsg.c | 10 ++++------
> 1 files changed, 4 insertions(+), 6 deletions(-)

Acked-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>

Thanks,

James, can you merge this via your tree?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/