From patchwork Tue Sep 4 14:24:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Lu X-Patchwork-Id: 1402451 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 9B07D402E1 for ; Tue, 4 Sep 2012 14:25:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932215Ab2IDOZd (ORCPT ); Tue, 4 Sep 2012 10:25:33 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:62706 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932175Ab2IDOZa (ORCPT ); Tue, 4 Sep 2012 10:25:30 -0400 Received: by mail-pz0-f46.google.com with SMTP id y13so4438855dad.19 for ; Tue, 04 Sep 2012 07:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=+jtPj0achBXFf6GgZnVOrtpNulUMZ8uGTv86dBMCBe8=; b=EN1yX5sPPkRUB/CsjJSEJOUzimyHq2yyHf0rXaWWix9yUuY7Kjh3h+rTJX7xNZDOWm JrXkPBvzN98xRIIhWudYHGemTmYMh3YgzI2HlIqkRtEcxknTrKQBvJJr+KZI5VYWfNWQ KVMYY8qk6pcMZEzxmRq3d7WeHQugzeWE5aLPAAbTs3e8muuyjC8Qp1+SzGO9fbHN4xAc AExJ68JhwGaSBGvAb/PQ6GvKtT80mOYxkBdMrlILX6tZfo7rviVnkHqY9O/SjD28DPf4 7t+j80nMO4fEY49K3TKAHdRLGzAePP+x8guyA9VNjDbTnTnnwTYfasCHg/SCKzDci5lx mAPw== Received: by 10.66.75.225 with SMTP id f1mr41528180paw.35.1346768729719; Tue, 04 Sep 2012 07:25:29 -0700 (PDT) Received: from localhost.localdomain.localdomain ([180.157.93.243]) by mx.google.com with ESMTPS id lb1sm12311440pbc.47.2012.09.04.07.25.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Sep 2012 07:25:29 -0700 (PDT) From: Aaron Lu To: Alan Stern , James Bottomley , Jeff Garzik Cc: linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, Aaron Lu , Aaron Lu Subject: [PATCH v6 2/7] block: genhd: export disk_(un)block_events Date: Tue, 4 Sep 2012 22:24:35 +0800 Message-Id: <1346768680-7287-3-git-send-email-aaron.lwe@gmail.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1346768680-7287-1-git-send-email-aaron.lwe@gmail.com> References: <1346768680-7287-1-git-send-email-aaron.lwe@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Aaron Lu When ODD is runtime powered off, there is no meaning to check events for it, so disk_(un)block_events will be called in its suspend/resume callback. Signed-off-by: Aaron Lu --- block/genhd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/genhd.c b/block/genhd.c index cac7366..f630150 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -1468,6 +1468,7 @@ void disk_block_events(struct gendisk *disk) mutex_unlock(&ev->block_mutex); } +EXPORT_SYMBOL(disk_block_events); static void __disk_unblock_events(struct gendisk *disk, bool check_now) { @@ -1512,6 +1513,7 @@ void disk_unblock_events(struct gendisk *disk) if (disk->ev) __disk_unblock_events(disk, false); } +EXPORT_SYMBOL(disk_unblock_events); /** * disk_flush_events - schedule immediate event checking and flushing